Changeset 32467 in osm


Ignore:
Timestamp:
2016-06-30T20:09:26+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

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

Legend:

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

    r31923 r32467  
    44    <property name="commit.message" value="GPXFilter: moved to Alt-Shift-X"/>
    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="10353"/>
    77
    88    <property name="plugin.author" value="Upliner"/>
  • applications/editors/josm/plugins/gpxfilter/src/gpxfilter/AddEGpxLayerAction.java

    r28341 r32467  
    2222    @Override
    2323    protected void updateEnabledState() {
    24         setEnabled(getCurrentDataSet() != null);
     24        setEnabled(getLayerManager().getEditDataSet() != null);
    2525    }
    2626
    2727    @Override
    28         public void actionPerformed(ActionEvent arg0)  {
    29         Main.main.addLayer(new EGpxLayer(Main.map.mapView.getRealBounds()));
     28    public void actionPerformed(ActionEvent arg0)  {
     29        getLayerManager().addLayer(new EGpxLayer(Main.map.mapView.getRealBounds()));
    3030    }
    3131}
Note: See TracChangeset for help on using the changeset viewer.