Changeset 32512 in osm for applications


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

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/undelete
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/undelete/build.xml

    r31923 r32512  
    44    <property name="commit.message" value="adapt to core changes (backwards compatible)"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7001"/>
     6    <property name="plugin.main.version" value="10279"/>
    77
    88    <property name="plugin.author" value="Nakor"/>
  • 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.