Changeset 32448 in osm for applications/editors
- Timestamp:
- 2016-06-29T21:17:34+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/OpeningHoursEditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OpeningHoursEditor/build.xml
r31923 r32448 4 4 <property name="commit.message" value="fixed main version"/> 5 5 <!-- 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"/> 7 7 8 8 <property name="plugin.author" value="Falko Thomale"/> -
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.