Changeset 14119 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2018-08-11T16:10:32+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
-
AboutAction.java (modified) (2 diffs)
-
HistoryInfoWebAction.java (modified) (2 diffs)
-
InfoWebAction.java (modified) (3 diffs)
-
ShowStatusReportAction.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r14107 r14119 33 33 import org.openstreetmap.josm.gui.widgets.UrlLabel; 34 34 import org.openstreetmap.josm.plugins.PluginHandler; 35 import org.openstreetmap.josm.spi.preferences.Config; 35 36 import org.openstreetmap.josm.tools.GBC; 36 37 import org.openstreetmap.josm.tools.ImageProvider; … … 100 101 info.add(label, GBC.eol().fill(GBC.HORIZONTAL).insets(10, 0, 0, 10)); 101 102 info.add(new JLabel(tr("Homepage")), GBC.std().insets(10, 0, 10, 0)); 102 info.add(new UrlLabel( Main.getJOSMWebsite(), 2), GBC.eol());103 info.add(new UrlLabel(Config.getUrls().getJOSMWebsite(), 2), GBC.eol()); 103 104 info.add(new JLabel(tr("Translations")), GBC.std().insets(10, 0, 10, 0)); 104 105 info.add(new UrlLabel("https://translations.launchpad.net/josm", 2), GBC.eol()); -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoWebAction.java
r13954 r14119 7 7 import java.awt.event.KeyEvent; 8 8 9 import org.openstreetmap.josm.Main;10 9 import org.openstreetmap.josm.data.osm.IPrimitive; 11 10 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 11 import org.openstreetmap.josm.spi.preferences.Config; 12 12 import org.openstreetmap.josm.tools.Shortcut; 13 13 … … 34 34 if (infoObject instanceof IPrimitive) { 35 35 IPrimitive primitive = (IPrimitive) infoObject; 36 return Main.getBaseBrowseUrl() + '/' + OsmPrimitiveType.from(primitive).getAPIName() + '/' + primitive.getOsmId() + "/history"; 36 return Config.getUrls().getBaseBrowseUrl() 37 + '/' + OsmPrimitiveType.from(primitive).getAPIName() + '/' + primitive.getOsmId() + "/history"; 37 38 } else { 38 39 return null; -
trunk/src/org/openstreetmap/josm/actions/InfoWebAction.java
r13954 r14119 8 8 import java.util.Collection; 9 9 10 import org.openstreetmap.josm.Main;11 10 import org.openstreetmap.josm.data.notes.Note; 12 11 import org.openstreetmap.josm.data.osm.IPrimitive; … … 14 13 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 15 14 import org.openstreetmap.josm.gui.MainApplication; 15 import org.openstreetmap.josm.spi.preferences.Config; 16 16 import org.openstreetmap.josm.tools.Shortcut; 17 17 … … 38 38 if (infoObject instanceof IPrimitive) { 39 39 IPrimitive primitive = (IPrimitive) infoObject; 40 return Main.getBaseBrowseUrl() + '/' + OsmPrimitiveType.from(primitive).getAPIName() + '/' + primitive.getOsmId();40 return Config.getUrls().getBaseBrowseUrl() + '/' + OsmPrimitiveType.from(primitive).getAPIName() + '/' + primitive.getOsmId(); 41 41 } else if (infoObject instanceof Note) { 42 42 Note note = (Note) infoObject; 43 return Main.getBaseBrowseUrl() + "/note/" + note.getId();43 return Config.getUrls().getBaseBrowseUrl() + "/note/" + note.getId(); 44 44 } else { 45 45 return null; -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r13647 r14119 198 198 199 199 String osmApi = OsmApi.getOsmApi().getServerUrl(); 200 if (! OsmApi.DEFAULT_API_URL.equals(osmApi.trim())) {200 if (!Config.getUrls().getDefaultOsmApiUrl().equals(osmApi.trim())) { 201 201 text.append("OSM API: ").append(osmApi).append("\n\n"); 202 202 }
Note:
See TracChangeset
for help on using the changeset viewer.
