Changeset 14120 in josm for trunk/scripts


Ignore:
Timestamp:
2018-08-11T17:29:48+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate all Main methods related to projections. New ProjectionRegistry class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.groovy

    r14119 r14120  
    3333import org.openstreetmap.josm.data.preferences.JosmBaseDirectories;
    3434import org.openstreetmap.josm.data.preferences.JosmUrls
     35import org.openstreetmap.josm.data.projection.ProjectionRegistry
    3536import org.openstreetmap.josm.data.projection.Projections
    3637import org.openstreetmap.josm.gui.NavigatableComponent
     
    418419        Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance())
    419420        Config.setUrlsProvider(JosmUrls.getInstance())
    420         Main.setProjection(Projections.getProjectionByCode("EPSG:3857"))
     421        ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857"))
    421422        Path tmpdir = Files.createTempDirectory(FileSystems.getDefault().getPath(base_dir), "pref")
    422423        tmpdir.toFile().deleteOnExit()
Note: See TracChangeset for help on using the changeset viewer.