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

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysAction.java

    r30345 r32466  
    4242        if (!isEnabled())
    4343            return;
    44         if (getCurrentDataSet() == null)
     44        if (getLayerManager().getEditDataSet() == null)
    4545            return;
    4646
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysMode.java

    r30345 r32466  
    2020import org.openstreetmap.josm.Main;
    2121import org.openstreetmap.josm.actions.mapmode.MapMode;
     22import org.openstreetmap.josm.data.osm.DataSet;
    2223import org.openstreetmap.josm.gui.IconToggleButton;
    2324import org.openstreetmap.josm.gui.MapFrame;
     
    149150            // already been removed by JOSM. This happens e.g. when the user closes
    150151            // JOSM while AlignWays mode is still active.
    151             if (getCurrentDataSet() != null) {
    152                 getCurrentDataSet().clearSelection();
     152            DataSet ds = getLayerManager().getEditDataSet();
     153            if (ds != null) {
     154                ds.clearSelection();
    153155            }
    154156        }
Note: See TracChangeset for help on using the changeset viewer.