Changeset 2412 in josm for trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
- Timestamp:
- 2009-11-08T17:51:35+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r2381 r2412 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;6 6 import static org.openstreetmap.josm.tools.I18n.trn; 7 7 … … 15 15 import java.util.LinkedList; 16 16 import java.util.List; 17 import java.util.Map; 17 18 import java.util.Set; 18 19 import java.util.Map.Entry; … … 101 102 // is exactly one way that all nodes are part of. 102 103 if (selectedWay == null && selectedNodes != null) { 103 HashMap<Way, Integer> wayOccurenceCounter = new HashMap<Way, Integer>();104 Map<Way, Integer> wayOccurenceCounter = new HashMap<Way, Integer>(); 104 105 for (Node n : selectedNodes) { 105 for (Way w : getCurrentDataSet().getWays()) {106 for (Way w : OsmPrimitive.getFilteredList(n.getReferrers(), Way.class)) { 106 107 if (!w.isUsable()) { 107 108 continue; … … 294 295 // now copy all relations to new way also 295 296 296 for (Relation r : getCurrentDataSet().getRelations()) {297 for (Relation r : OsmPrimitive.getFilteredList(selectedWay.getReferrers(), Relation.class)) { 297 298 if (!r.isUsable()) { 298 299 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
