Changeset 32466 in osm


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
Files:
3 edited

Legend:

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

    r31926 r32466  
    44    <property name="commit.message" value="AlignWays: moved to Shift-Spacebar due to shortcut confilcts with core. A is too overloaded"/>
    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/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.