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

remove calls to deprecated methods

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

Legend:

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

    r31926 r32472  
    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/michigan_left/src/MichiganLeft/MichiganLeft.java

    r30753 r32472  
    5858        @Override
    5959        public void actionPerformed(ActionEvent e) {
    60             Collection<OsmPrimitive> mainSelection = Main.main.getCurrentDataSet().getSelected();
     60            Collection<OsmPrimitive> mainSelection = Main.getLayerManager().getEditDataSet().getSelected();
    6161
    6262            ArrayList<OsmPrimitive> selection = new ArrayList<>();
     
    228228        @Override
    229229        protected void updateEnabledState() {
    230             setEnabled(getEditLayer() != null);
     230            setEnabled(getLayerManager().getEditLayer() != null);
    231231        }
    232232
Note: See TracChangeset for help on using the changeset viewer.