Ignore:
Timestamp:
2016-07-02T00:06:41+02:00 (9 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/UndeleteAction.java

    r30737 r32512  
    6262        Main.info("Undeleting "+ids+(parent==null?"":" with parent "+parent));
    6363       
    64         OsmDataLayer tmpLayer = Main.main.getEditLayer();
     64        OsmDataLayer tmpLayer = Main.getLayerManager().getEditLayer();
    6565        if ((tmpLayer == null) || newLayer) {
    6666            tmpLayer = new OsmDataLayer(new DataSet(), OsmDataLayer.createNewName(), null);
    67             Main.main.addLayer(tmpLayer);
     67            Main.getLayerManager().addLayer(tmpLayer);
    6868        }
    6969
Note: See TracChangeset for help on using the changeset viewer.