Ignore:
Timestamp:
2014-10-30T16:49:19+01:00 (5 years ago)
Author:
stoecker
Message:

fix #9059 - no more assumptions about URL for element browsing - use OSM website as default and hidden option for changes

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java

    r7299 r7678  
    2020
    2121import org.openstreetmap.josm.Main;
    22 import org.openstreetmap.josm.actions.AbstractInfoAction;
    2322import org.openstreetmap.josm.data.osm.Changeset;
    2423import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    169168
    170169    protected static String getUserUrl(String username) throws UnsupportedEncodingException {
    171         return AbstractInfoAction.getBaseUserUrl() + "/" +  URLEncoder.encode(username, "UTF-8").replaceAll("\\+", "%20");
     170        return Main.getBaseUserUrl() + "/" +  URLEncoder.encode(username, "UTF-8").replaceAll("\\+", "%20");
    172171    }
    173172
     
    181180        if (!model.isLatest(primitive)) {
    182181            User user = primitive.getUser();
    183             String url = AbstractInfoAction.getBaseBrowseUrl() + "/changeset/" + primitive.getChangesetId();
     182            String url = Main.getBaseBrowseUrl() + "/changeset/" + primitive.getChangesetId();
    184183            lblChangeset.setUrl(url);
    185184            lblChangeset.setDescription(Long.toString(primitive.getChangesetId()));
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java

    r6915 r7678  
    156156        protected String createInfoUrl(Object infoObject) {
    157157            HistoryOsmPrimitive primitive = (HistoryOsmPrimitive) infoObject;
    158             return getBaseBrowseUrl() + "/changeset/" + primitive.getChangesetId();
     158            return Main.getBaseBrowseUrl() + "/changeset/" + primitive.getChangesetId();
    159159        }
    160160
     
    186186        protected String createInfoUrl(Object infoObject) {
    187187            HistoryOsmPrimitive hp = (HistoryOsmPrimitive) infoObject;
    188             return hp.getUser() == null ? null : getBaseUserUrl() + "/" + hp.getUser().getName();
     188            return hp.getUser() == null ? null : Main.getBaseUserUrl() + "/" + hp.getUser().getName();
    189189        }
    190190
Note: See TracChangeset for help on using the changeset viewer.