Ignore:
Timestamp:
2014-10-30T16:49:19+01:00 (9 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

File:
1 edited

Legend:

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

    r7634 r7678  
    15621562
    15631563    /**
     1564     * Replies the base URL for browsing information about a primitive.
     1565     * @return the base URL, i.e. https://www.openstreetmap.org
     1566     * @since 7678
     1567     */
     1568    public static String getBaseBrowseUrl() {
     1569        if (Main.pref != null)
     1570            return Main.pref.get("osm-browse.url", getOSMWebsite());
     1571        return getOSMWebsite();
     1572    }
     1573
     1574    /**
     1575     * Replies the base URL for browsing information about a user.
     1576     * @return the base URL, i.e. https://www.openstreetmap.org/user
     1577     * @since 7678
     1578     */
     1579    public static String getBaseUserUrl() {
     1580        if (Main.pref != null)
     1581            return Main.pref.get("osm-user.url", getOSMWebsite() + "/user");
     1582        return getOSMWebsite() + "/user";
     1583    }
     1584
     1585    /**
    15641586     * Determines if we are currently running on OSX.
    15651587     * @return {@code true} if we are currently running on OSX
Note: See TracChangeset for help on using the changeset viewer.