Changeset 1415 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2009-02-16T15:14:34+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r1397 r1415 129 129 } 130 130 131 /**132 * Try to delete all given primitives.133 *134 * If a node is used by a way, it's removed from that way. If a node or a way is used by a135 * relation, inform the user and do not delete.136 *137 * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If138 * they are part of a relation, inform the user and do not delete.139 *140 * @param selection The objects to delete.141 * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well142 * @return command A command to perform the deletions, or null of there is nothing to delete.143 */144 131 private static int testRelation(Relation ref, OsmPrimitive osm) { 145 132 NameVisitor n = new NameVisitor(); … … 175 162 } 176 163 164 /** 165 * Try to delete all given primitives. 166 * 167 * If a node is used by a way, it's removed from that way. If a node or a way is used by a 168 * relation, inform the user and do not delete. 169 * 170 * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If 171 * they are part of a relation, inform the user and do not delete. 172 * 173 * @param selection The objects to delete. 174 * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well 175 * @return command A command to perform the deletions, or null of there is nothing to delete. 176 */ 177 177 public static Command delete(Collection<? extends OsmPrimitive> selection, boolean alsoDeleteNodesInWay) { 178 178 if (selection.isEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.