Changeset 32471 in osm for applications
- Timestamp:
- 2016-06-30T20:15:34+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/merge-overlap
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/merge-overlap/build.xml
r31926 r32471 4 4 <property name="commit.message" value="MergeOverlap: help shortcut parser, rebuild"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value=" 8974"/>6 <property name="plugin.main.version" value="10353"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/MergeOverlapAction.java
r31732 r32471 82 82 83 83 // For every selected way 84 for (OsmPrimitive osm : Main.main.getCurrentDataSet().getSelected()) {84 for (OsmPrimitive osm : getLayerManager().getEditDataSet().getSelected()) { 85 85 if (osm instanceof Way && !osm.isDeleted()) { 86 86 Way way = (Way) osm; … … 163 163 if (!nodes.isEmpty() && !way.isClosed() || nodes.size() >= 2) { 164 164 List<List<Node>> wayChunks = SplitWayAction.buildSplitChunks(way, new ArrayList<>(nodes)); 165 SplitWayResult result = splitWay(getEditLayer(), way, wayChunks); 165 SplitWayResult result = splitWay(getLayerManager().getEditLayer(), way, wayChunks); 166 166 167 167 cmds.add(result.getCommand()); … … 237 237 // Commit 238 238 Main.main.undoRedo.add(new SequenceCommand(tr("Merge Overlap (combine)"), cmds)); 239 get CurrentDataSet().setSelected(sel);239 getLayerManager().getEditDataSet().setSelected(sel); 240 240 Main.map.repaint(); 241 241 … … 681 681 @Override 682 682 protected void updateEnabledState() { 683 if (get CurrentDataSet() == null) {683 if (getLayerManager().getEditDataSet() == null) { 684 684 setEnabled(false); 685 685 } else { 686 updateEnabledState(get CurrentDataSet().getSelected());686 updateEnabledState(getLayerManager().getEditDataSet().getSelected()); 687 687 } 688 688 }
Note:
See TracChangeset
for help on using the changeset viewer.