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/src/org/openstreetmap/josm/io/session/SessionWriter.java

    r13901 r14120  
    2626import javax.xml.transform.stream.StreamResult;
    2727
    28 import org.openstreetmap.josm.Main;
    2928import org.openstreetmap.josm.data.coor.EastNorth;
    3029import org.openstreetmap.josm.data.coor.LatLon;
     30import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    3131import org.openstreetmap.josm.gui.MainApplication;
    3232import org.openstreetmap.josm.gui.MapView;
     
    264264        MapView mapView = MainApplication.getMap().mapView;
    265265        EastNorth center = mapView.getCenter();
    266         LatLon centerLL = Main.getProjection().eastNorth2latlon(center);
     266        LatLon centerLL = ProjectionRegistry.getProjection().eastNorth2latlon(center);
    267267        centerEl.setAttribute("lat", Double.toString(centerLL.lat()));
    268268        centerEl.setAttribute("lon", Double.toString(centerLL.lon()));
     
    293293            }
    294294        }
    295         String code = Main.getProjection().toCode();
     295        String code = ProjectionRegistry.getProjection().toCode();
    296296        if (code != null) {
    297297            Element codeEl = doc.createElement("code");
Note: See TracChangeset for help on using the changeset viewer.