Changeset 1688 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-06-22T11:48:41+02:00 (15 years ago)
Author:
stoecker
Message:

fixed #2744 - server url defaults

Location:
trunk/src/org/openstreetmap/josm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UploadAction.java

    r1685 r1688  
    552552                tr(   "Failed to initialize communication with the OSM server {0}.\n"
    553553                        + "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")
    555555                ),
    556556                tr("Error"),
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r1628 r1688  
    353353        put("commandstack.visible", true);
    354354        put("projection", Mercator.class.getName());
    355         put("osm-server.url", "http://api.openstreetmap.org/api");
    356355        if (System.getProperty("os.name").toUpperCase().indexOf("WINDOWS") == -1) {
    357356            put("laf", "javax.swing.plaf.metal.MetalLookAndFeel");
  • trunk/src/org/openstreetmap/josm/gui/preferences/ServerAccessPreference.java

    r1676 r1688  
    2929
    3030    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"));
    3232        osmDataUsername.setText(Main.pref.get("osm-server.username"));
    3333        osmDataPassword.setText(Main.pref.get("osm-server.password"));
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r1684 r1688  
    7676     */
    7777    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");
    7979        if (serverUrl == null)
    8080            throw new IllegalStateException(tr("preference ''{0}'' missing. Can't initialize OsmApi", "osm-server.url"));
Note: See TracChangeset for help on using the changeset viewer.