Ignore:
Timestamp:
2016-06-29T21:17:34+02:00 (9 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java

    r30737 r32448  
    9595        @Override
    9696        protected void updateEnabledState() {
    97             if (getCurrentDataSet() == null) {
     97            if (getLayerManager().getEditDataSet() == null) {
    9898                // if there is no current dataset, then the action is disabled
    9999                setEnabled(false);
    100100            } else {
    101                 updateEnabledState(getCurrentDataSet().getSelected());
     101                updateEnabledState(getLayerManager().getEditDataSet().getSelected());
    102102            }
    103103        }
     
    113113        public void actionPerformed(ActionEvent evt) {
    114114            // fetch active Layer
    115             OsmDataLayer osmlayer = Main.main.getEditLayer();
     115            OsmDataLayer osmlayer = getLayerManager().getEditLayer();
    116116            if (osmlayer == null)
    117117                return;
Note: See TracChangeset for help on using the changeset viewer.