Changeset 32448 in osm for applications/editors/josm/plugins/OpeningHoursEditor/src/org
- Timestamp:
- 2016-06-29T21:17:34+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java
r30737 r32448 95 95 @Override 96 96 protected void updateEnabledState() { 97 if (get CurrentDataSet() == null) {97 if (getLayerManager().getEditDataSet() == null) { 98 98 // if there is no current dataset, then the action is disabled 99 99 setEnabled(false); 100 100 } else { 101 updateEnabledState(get CurrentDataSet().getSelected());101 updateEnabledState(getLayerManager().getEditDataSet().getSelected()); 102 102 } 103 103 } … … 113 113 public void actionPerformed(ActionEvent evt) { 114 114 // fetch active Layer 115 OsmDataLayer osmlayer = Main.main.getEditLayer();115 OsmDataLayer osmlayer = getLayerManager().getEditLayer(); 116 116 if (osmlayer == null) 117 117 return;
Note:
See TracChangeset
for help on using the changeset viewer.