Changeset 14119 in josm for trunk/scripts


Ignore:
Timestamp:
2018-08-11T16:10:32+02:00 (14 months ago)
Author:
Don-vip
Message:

see #15229 - deprecate all Main methods returning an URL

Location:
trunk/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/I18nSimilarStrings.java

    r13793 r14119  
    77import org.openstreetmap.josm.data.UndoRedoHandler;
    88import org.openstreetmap.josm.data.preferences.JosmBaseDirectories;
     9import org.openstreetmap.josm.data.preferences.JosmUrls;
    910import org.openstreetmap.josm.data.validation.tests.SimilarNamedWays;
    1011import org.openstreetmap.josm.gui.MainApplication;
     
    2930        Main.determinePlatformHook();
    3031        Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance());
     32        Config.setUrlsProvider(JosmUrls.getInstance());
    3133        Preferences pref = new Preferences();
    3234        Config.setPreferencesInstance(pref);
  • trunk/scripts/TagInfoExtract.groovy

    r14025 r14119  
    3232import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer
    3333import org.openstreetmap.josm.data.preferences.JosmBaseDirectories;
     34import org.openstreetmap.josm.data.preferences.JosmUrls
    3435import org.openstreetmap.josm.data.projection.Projections
    3536import org.openstreetmap.josm.gui.NavigatableComponent
     
    415416        Main.pref.enableSaveOnPut(false)
    416417        Config.setPreferencesInstance(Main.pref)
    417         Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance());
     418        Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance())
     419        Config.setUrlsProvider(JosmUrls.getInstance())
    418420        Main.setProjection(Projections.getProjectionByCode("EPSG:3857"))
    419421        Path tmpdir = Files.createTempDirectory(FileSystems.getDefault().getPath(base_dir), "pref")
Note: See TracChangeset for help on using the changeset viewer.