Changeset 1688 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-06-22T11:48:41+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r1685 r1688 552 552 tr( "Failed to initialize communication with the OSM server {0}.\n" 553 553 + "Check the server URL in your preferences and your internet connection.", 554 Main.pref.get("osm-server.url" )554 Main.pref.get("osm-server.url", "http://api.openstreetmap.org/api") 555 555 ), 556 556 tr("Error"), -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r1628 r1688 353 353 put("commandstack.visible", true); 354 354 put("projection", Mercator.class.getName()); 355 put("osm-server.url", "http://api.openstreetmap.org/api");356 355 if (System.getProperty("os.name").toUpperCase().indexOf("WINDOWS") == -1) { 357 356 put("laf", "javax.swing.plaf.metal.MetalLookAndFeel"); -
trunk/src/org/openstreetmap/josm/gui/preferences/ServerAccessPreference.java
r1676 r1688 29 29 30 30 public void addGui(PreferenceDialog gui) { 31 osmDataServer.setText(Main.pref.get("osm-server.url" ));31 osmDataServer.setText(Main.pref.get("osm-server.url", "http://api.openstreetmap.org/api")); 32 32 osmDataUsername.setText(Main.pref.get("osm-server.username")); 33 33 osmDataPassword.setText(Main.pref.get("osm-server.password")); -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r1684 r1688 76 76 */ 77 77 static public OsmApi getOsmApi() { 78 String serverUrl = Main.pref.get("osm-server.url" );78 String serverUrl = Main.pref.get("osm-server.url", "http://api.openstreetmap.org/api"); 79 79 if (serverUrl == null) 80 80 throw new IllegalStateException(tr("preference ''{0}'' missing. Can't initialize OsmApi", "osm-server.url"));
Note:
See TracChangeset
for help on using the changeset viewer.