Changeset 32481 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-07-01T09:39:12+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

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

Legend:

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

    r31926 r32481  
    44    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    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        <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/download_along/src/org/openstreetmap/josm/plugin/download_along/DownloadAlongWayAction.java

    r30737 r32481  
    4242    @Override
    4343    public void actionPerformed(ActionEvent e) {
    44         Set<Way> selectedWays = OsmPrimitive.getFilteredSet(Main.main.getCurrentDataSet().getSelected(), Way.class);
     44        Set<Way> selectedWays = OsmPrimitive.getFilteredSet(getLayerManager().getEditDataSet().getSelected(), Way.class);
    4545
    4646        if (selectedWays.isEmpty()) {
     
    133133    @Override
    134134    protected void updateEnabledState() {
    135         if (getCurrentDataSet() == null) {
     135        if (getLayerManager().getEditDataSet() == null) {
    136136            setEnabled(false);
    137137        } else {
    138             updateEnabledState(getCurrentDataSet().getSelected());
     138            updateEnabledState(getLayerManager().getEditDataSet().getSelected());
    139139        }
    140140    }
Note: See TracChangeset for help on using the changeset viewer.