Ignore:
Timestamp:
2017-08-24T22:53:50+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.getLayerManager(). Replacement: gui.MainApplication.getLayerManager()

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

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

    r12630 r12636  
    103103        }
    104104
    105         OsmDataLayer layer = Main.getLayerManager().getEditLayer();
     105        OsmDataLayer layer = MainApplication.getLayerManager().getEditLayer();
    106106        DataSet dataset = ways.get(0).getDataSet();
    107107
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r12634 r12636  
    2323import org.openstreetmap.josm.Main;
    2424import org.openstreetmap.josm.actions.OpenFileAction.OpenFileTask;
     25import org.openstreetmap.josm.gui.MainApplication;
    2526import org.openstreetmap.josm.io.OsmTransferException;
    2627import org.xml.sax.SAXException;
     
    172173            break;
    173174        case "handleQuitRequestWith":
    174             boolean closed = Main.exitJosm(false, 0, null);
     175            boolean closed = MainApplication.exitJosm(false, 0, null);
    175176            if (args[1] != null) {
    176177                try {
Note: See TracChangeset for help on using the changeset viewer.