1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
2 | package org.openstreetmap.josm.command;
|
---|
3 |
|
---|
4 | import java.awt.geom.Area;
|
---|
5 | import static org.openstreetmap.josm.tools.I18n.marktr;
|
---|
6 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
7 | import static org.openstreetmap.josm.tools.I18n.trn;
|
---|
8 |
|
---|
9 | import java.util.ArrayList;
|
---|
10 | import java.util.Collection;
|
---|
11 | import java.util.Collections;
|
---|
12 | import java.util.HashMap;
|
---|
13 | import java.util.HashSet;
|
---|
14 | import java.util.Iterator;
|
---|
15 | import java.util.LinkedList;
|
---|
16 | import java.util.List;
|
---|
17 | import java.util.Map;
|
---|
18 | import java.util.Set;
|
---|
19 | import java.util.Map.Entry;
|
---|
20 |
|
---|
21 | import javax.swing.JLabel;
|
---|
22 |
|
---|
23 | import org.openstreetmap.josm.actions.SplitWayAction;
|
---|
24 | import org.openstreetmap.josm.data.osm.Node;
|
---|
25 | import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
---|
26 | import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
|
---|
27 | import org.openstreetmap.josm.data.osm.PrimitiveData;
|
---|
28 | import org.openstreetmap.josm.data.osm.Relation;
|
---|
29 | import org.openstreetmap.josm.data.osm.RelationToChildReference;
|
---|
30 | import org.openstreetmap.josm.data.osm.Way;
|
---|
31 | import org.openstreetmap.josm.data.osm.WaySegment;
|
---|
32 | import org.openstreetmap.josm.gui.DefaultNameFormatter;
|
---|
33 | import org.openstreetmap.josm.gui.actionsupport.DeleteFromRelationConfirmationDialog;
|
---|
34 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
35 | import org.openstreetmap.josm.tools.CheckParameterUtil;
|
---|
36 | import org.openstreetmap.josm.tools.ImageProvider;
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * A command to delete a number of primitives from the dataset.
|
---|
40 | *
|
---|
41 | */
|
---|
42 | public class DeleteCommand extends Command {
|
---|
43 | /**
|
---|
44 | * The primitives that get deleted.
|
---|
45 | */
|
---|
46 | private final Collection<? extends OsmPrimitive> toDelete;
|
---|
47 | private final Map<OsmPrimitive, PrimitiveData> clonedPrimitives = new HashMap<OsmPrimitive, PrimitiveData>();
|
---|
48 |
|
---|
49 | /**
|
---|
50 | * Constructor. Deletes a collection of primitives in the current edit layer.
|
---|
51 | *
|
---|
52 | * @param data the primitives to delete. Must neither be null nor empty.
|
---|
53 | * @throws IllegalArgumentException thrown if data is null or empty
|
---|
54 | */
|
---|
55 | public DeleteCommand(Collection<? extends OsmPrimitive> data) throws IllegalArgumentException {
|
---|
56 | if (data == null)
|
---|
57 | throw new IllegalArgumentException("Parameter 'data' must not be empty");
|
---|
58 | if (data.isEmpty())
|
---|
59 | throw new IllegalArgumentException(tr("At least one object to delete required, got empty collection"));
|
---|
60 | this.toDelete = data;
|
---|
61 | }
|
---|
62 |
|
---|
63 | /**
|
---|
64 | * Constructor. Deletes a single primitive in the current edit layer.
|
---|
65 | *
|
---|
66 | * @param data the primitive to delete. Must not be null.
|
---|
67 | * @throws IllegalArgumentException thrown if data is null
|
---|
68 | */
|
---|
69 | public DeleteCommand(OsmPrimitive data) throws IllegalArgumentException {
|
---|
70 | CheckParameterUtil.ensureParameterNotNull(data, "data");
|
---|
71 | this.toDelete = Collections.singleton(data);
|
---|
72 | }
|
---|
73 |
|
---|
74 | /**
|
---|
75 | * Constructor for a single data item. Use the collection constructor to delete multiple
|
---|
76 | * objects.
|
---|
77 | *
|
---|
78 | * @param layer the layer context for deleting this primitive. Must not be null.
|
---|
79 | * @param data the primitive to delete. Must not be null.
|
---|
80 | * @throws IllegalArgumentException thrown if data is null
|
---|
81 | * @throws IllegalArgumentException thrown if layer is null
|
---|
82 | */
|
---|
83 | public DeleteCommand(OsmDataLayer layer, OsmPrimitive data) throws IllegalArgumentException {
|
---|
84 | super(layer);
|
---|
85 | CheckParameterUtil.ensureParameterNotNull(data, "data");
|
---|
86 | this.toDelete = Collections.singleton(data);
|
---|
87 | }
|
---|
88 |
|
---|
89 | /**
|
---|
90 | * Constructor for a collection of data to be deleted in the context of
|
---|
91 | * a specific layer
|
---|
92 | *
|
---|
93 | * @param layer the layer context for deleting these primitives. Must not be null.
|
---|
94 | * @param data the primitives to delete. Must neither be null nor empty.
|
---|
95 | * @throws IllegalArgumentException thrown if layer is null
|
---|
96 | * @throws IllegalArgumentException thrown if data is null or empty
|
---|
97 | */
|
---|
98 | public DeleteCommand(OsmDataLayer layer, Collection<? extends OsmPrimitive> data) throws IllegalArgumentException{
|
---|
99 | super(layer);
|
---|
100 | if (data == null)
|
---|
101 | throw new IllegalArgumentException("Parameter 'data' must not be empty");
|
---|
102 | if (data.isEmpty())
|
---|
103 | throw new IllegalArgumentException(tr("At least one object to delete required, got empty collection"));
|
---|
104 | this.toDelete = data;
|
---|
105 | }
|
---|
106 |
|
---|
107 | @Override
|
---|
108 | public boolean executeCommand() {
|
---|
109 | // Make copy and remove all references (to prevent inconsistent dataset (delete referenced) while command is executed)
|
---|
110 | for (OsmPrimitive osm: toDelete) {
|
---|
111 | if (osm.isDeleted())
|
---|
112 | throw new IllegalArgumentException(osm.toString() + " is already deleted");
|
---|
113 | clonedPrimitives.put(osm, osm.save());
|
---|
114 |
|
---|
115 | if (osm instanceof Way) {
|
---|
116 | ((Way) osm).setNodes(null);
|
---|
117 | } else if (osm instanceof Relation) {
|
---|
118 | ((Relation) osm).setMembers(null);
|
---|
119 | }
|
---|
120 | }
|
---|
121 |
|
---|
122 | for (OsmPrimitive osm: toDelete) {
|
---|
123 | osm.setDeleted(true);
|
---|
124 | }
|
---|
125 |
|
---|
126 | return true;
|
---|
127 | }
|
---|
128 |
|
---|
129 | @Override
|
---|
130 | public void undoCommand() {
|
---|
131 | for (OsmPrimitive osm: toDelete) {
|
---|
132 | osm.setDeleted(false);
|
---|
133 | }
|
---|
134 |
|
---|
135 | for (Entry<OsmPrimitive, PrimitiveData> entry: clonedPrimitives.entrySet()) {
|
---|
136 | entry.getKey().load(entry.getValue());
|
---|
137 | }
|
---|
138 | }
|
---|
139 |
|
---|
140 | @Override
|
---|
141 | public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted,
|
---|
142 | Collection<OsmPrimitive> added) {
|
---|
143 | }
|
---|
144 |
|
---|
145 | @Override public JLabel getDescription() {
|
---|
146 | if (toDelete.size() == 1) {
|
---|
147 | OsmPrimitive primitive = toDelete.iterator().next();
|
---|
148 | String msg = "";
|
---|
149 | switch(OsmPrimitiveType.from(primitive)) {
|
---|
150 | case NODE: msg = marktr("Delete node {0}"); break;
|
---|
151 | case WAY: msg = marktr("Delete way {0}"); break;
|
---|
152 | case RELATION:msg = marktr("Delete relation {0}"); break;
|
---|
153 | }
|
---|
154 |
|
---|
155 | return new JLabel(tr(msg, primitive.getDisplayName(DefaultNameFormatter.getInstance())),
|
---|
156 | ImageProvider.get(OsmPrimitiveType.from(primitive)), JLabel.HORIZONTAL);
|
---|
157 | } else {
|
---|
158 | Set<OsmPrimitiveType> typesToDelete = new HashSet<OsmPrimitiveType>();
|
---|
159 | for (OsmPrimitive osm : toDelete) {
|
---|
160 | typesToDelete.add(OsmPrimitiveType.from(osm));
|
---|
161 | }
|
---|
162 | String msg = "";
|
---|
163 | String apiname = "object";
|
---|
164 | if (typesToDelete.size() > 1) {
|
---|
165 | msg = trn("Delete {0} object", "Delete {0} objects", toDelete.size(), toDelete.size());
|
---|
166 | } else {
|
---|
167 | OsmPrimitiveType t = typesToDelete.iterator().next();
|
---|
168 | apiname = t.getAPIName();
|
---|
169 | switch(t) {
|
---|
170 | case NODE: msg = trn("Delete {0} node", "Delete {0} nodes", toDelete.size(), toDelete.size()); break;
|
---|
171 | case WAY: msg = trn("Delete {0} way", "Delete {0} ways", toDelete.size(), toDelete.size()); break;
|
---|
172 | case RELATION: msg = trn("Delete {0} relation", "Delete {0} relations", toDelete.size(), toDelete.size()); break;
|
---|
173 | }
|
---|
174 | }
|
---|
175 | return new JLabel(msg, ImageProvider.get("data", apiname), JLabel.HORIZONTAL);
|
---|
176 | }
|
---|
177 | }
|
---|
178 |
|
---|
179 | @Override public Collection<PseudoCommand> getChildren() {
|
---|
180 | if (toDelete.size() == 1)
|
---|
181 | return null;
|
---|
182 | else {
|
---|
183 | List<PseudoCommand> children = new ArrayList<PseudoCommand>();
|
---|
184 | for (final OsmPrimitive osm : toDelete) {
|
---|
185 | children.add(new PseudoCommand() {
|
---|
186 | @Override public JLabel getDescription() {
|
---|
187 | return new JLabel(
|
---|
188 | tr("Deleted ''{0}''",
|
---|
189 | osm.getDisplayName(DefaultNameFormatter.getInstance())),
|
---|
190 | ImageProvider.get(OsmPrimitiveType.from(osm)), JLabel.HORIZONTAL);
|
---|
191 | }
|
---|
192 | @Override public Collection<? extends OsmPrimitive> getParticipatingPrimitives() {
|
---|
193 | return Collections.singleton(osm);
|
---|
194 | }
|
---|
195 |
|
---|
196 | });
|
---|
197 | }
|
---|
198 | return children;
|
---|
199 |
|
---|
200 | }
|
---|
201 | }
|
---|
202 |
|
---|
203 | @Override public Collection<? extends OsmPrimitive> getParticipatingPrimitives() {
|
---|
204 | return toDelete;
|
---|
205 | }
|
---|
206 |
|
---|
207 | /**
|
---|
208 | * Delete the primitives and everything they reference.
|
---|
209 | *
|
---|
210 | * If a node is deleted, the node and all ways and relations the node is part of are deleted as
|
---|
211 | * well.
|
---|
212 | *
|
---|
213 | * If a way is deleted, all relations the way is member of are also deleted.
|
---|
214 | *
|
---|
215 | * If a way is deleted, only the way and no nodes are deleted.
|
---|
216 | *
|
---|
217 | * @param layer the {@see OsmDataLayer} in whose context primitives are deleted. Must not be null.
|
---|
218 | * @param selection The list of all object to be deleted.
|
---|
219 | * @param silent Set to true if the user should not be bugged with additional dialogs
|
---|
220 | * @return command A command to perform the deletions, or null of there is nothing to delete.
|
---|
221 | * @throws IllegalArgumentException thrown if layer is null
|
---|
222 | */
|
---|
223 | public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, boolean silent) throws IllegalArgumentException {
|
---|
224 | CheckParameterUtil.ensureParameterNotNull(layer, "layer");
|
---|
225 | if (selection == null || selection.isEmpty()) return null;
|
---|
226 | Set<OsmPrimitive> parents = OsmPrimitive.getReferrer(selection);
|
---|
227 | parents.addAll(selection);
|
---|
228 |
|
---|
229 | if (parents.isEmpty())
|
---|
230 | return null;
|
---|
231 | if (!silent && !checkAndConfirmOutlyingDelete(layer, parents, null))
|
---|
232 | return null;
|
---|
233 | return new DeleteCommand(layer,parents);
|
---|
234 | }
|
---|
235 |
|
---|
236 | public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection) {
|
---|
237 | return deleteWithReferences(layer, selection, false);
|
---|
238 | }
|
---|
239 |
|
---|
240 | public static Command delete(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection) {
|
---|
241 | return delete(layer, selection, true, false);
|
---|
242 | }
|
---|
243 |
|
---|
244 | /**
|
---|
245 | * Replies the collection of nodes referred to by primitives in <code>primitivesToDelete</code> which
|
---|
246 | * can be deleted too. A node can be deleted if
|
---|
247 | * <ul>
|
---|
248 | * <li>it is untagged (see {@see Node#isTagged()}</li>
|
---|
249 | * <li>it is not referred to by other non-deleted primitives outside of <code>primitivesToDelete</code></li>
|
---|
250 | * <ul>
|
---|
251 | * @param layer the layer in whose context primitives are deleted
|
---|
252 | * @param primitivesToDelete the primitives to delete
|
---|
253 | * @return the collection of nodes referred to by primitives in <code>primitivesToDelete</code> which
|
---|
254 | * can be deleted too
|
---|
255 | */
|
---|
256 | protected static Collection<Node> computeNodesToDelete(OsmDataLayer layer, Collection<OsmPrimitive> primitivesToDelete) {
|
---|
257 | Collection<Node> nodesToDelete = new HashSet<Node>();
|
---|
258 | for (Way way : OsmPrimitive.getFilteredList(primitivesToDelete, Way.class)) {
|
---|
259 | for (Node n : way.getNodes()) {
|
---|
260 | if (n.isTagged()) {
|
---|
261 | continue;
|
---|
262 | }
|
---|
263 | Collection<OsmPrimitive> referringPrimitives = n.getReferrers();
|
---|
264 | referringPrimitives.removeAll(primitivesToDelete);
|
---|
265 | int count = 0;
|
---|
266 | for (OsmPrimitive p : referringPrimitives) {
|
---|
267 | if (!p.isDeleted()) {
|
---|
268 | count++;
|
---|
269 | }
|
---|
270 | }
|
---|
271 | if (count == 0) {
|
---|
272 | nodesToDelete.add(n);
|
---|
273 | }
|
---|
274 | }
|
---|
275 | }
|
---|
276 | return nodesToDelete;
|
---|
277 | }
|
---|
278 |
|
---|
279 | /**
|
---|
280 | * Try to delete all given primitives.
|
---|
281 | *
|
---|
282 | * If a node is used by a way, it's removed from that way. If a node or a way is used by a
|
---|
283 | * relation, inform the user and do not delete.
|
---|
284 | *
|
---|
285 | * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If
|
---|
286 | * they are part of a relation, inform the user and do not delete.
|
---|
287 | *
|
---|
288 | * @param layer the {@see OsmDataLayer} in whose context the primitives are deleted
|
---|
289 | * @param selection the objects to delete.
|
---|
290 | * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well
|
---|
291 | * @return command a command to perform the deletions, or null if there is nothing to delete.
|
---|
292 | */
|
---|
293 | public static Command delete(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection,
|
---|
294 | boolean alsoDeleteNodesInWay) {
|
---|
295 | return delete(layer, selection, alsoDeleteNodesInWay, false /* not silent */);
|
---|
296 | }
|
---|
297 |
|
---|
298 | /**
|
---|
299 | * Try to delete all given primitives.
|
---|
300 | *
|
---|
301 | * If a node is used by a way, it's removed from that way. If a node or a way is used by a
|
---|
302 | * relation, inform the user and do not delete.
|
---|
303 | *
|
---|
304 | * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If
|
---|
305 | * they are part of a relation, inform the user and do not delete.
|
---|
306 | *
|
---|
307 | * @param layer the {@see OsmDataLayer} in whose context the primitives are deleted
|
---|
308 | * @param selection the objects to delete.
|
---|
309 | * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well
|
---|
310 | * @param silent set to true if the user should not be bugged with additional questions
|
---|
311 | * @return command a command to perform the deletions, or null if there is nothing to delete.
|
---|
312 | */
|
---|
313 | public static Command delete(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection,
|
---|
314 | boolean alsoDeleteNodesInWay, boolean silent) {
|
---|
315 | if (selection == null || selection.isEmpty())
|
---|
316 | return null;
|
---|
317 |
|
---|
318 | Set<OsmPrimitive> primitivesToDelete = new HashSet<OsmPrimitive>(selection);
|
---|
319 | Collection<Way> waysToBeChanged = new HashSet<Way>();
|
---|
320 |
|
---|
321 | if (alsoDeleteNodesInWay) {
|
---|
322 | // delete untagged nodes only referenced by primitives in primitivesToDelete,
|
---|
323 | // too
|
---|
324 | Collection<Node> nodesToDelete = computeNodesToDelete(layer, primitivesToDelete);
|
---|
325 | primitivesToDelete.addAll(nodesToDelete);
|
---|
326 | }
|
---|
327 |
|
---|
328 | if (!silent && !checkAndConfirmOutlyingDelete(layer, primitivesToDelete, null))
|
---|
329 | return null;
|
---|
330 |
|
---|
331 | waysToBeChanged.addAll(OsmPrimitive.getFilteredSet(OsmPrimitive.getReferrer(primitivesToDelete), Way.class));
|
---|
332 |
|
---|
333 | Collection<Command> cmds = new LinkedList<Command>();
|
---|
334 | for (Way w : waysToBeChanged) {
|
---|
335 | Way wnew = new Way(w);
|
---|
336 | wnew.removeNodes(primitivesToDelete);
|
---|
337 | if (wnew.getNodesCount() < 2) {
|
---|
338 | primitivesToDelete.add(w);
|
---|
339 | } else {
|
---|
340 | cmds.add(new ChangeCommand(w, wnew));
|
---|
341 | }
|
---|
342 | }
|
---|
343 |
|
---|
344 | // get a confirmation that the objects to delete can be removed from their parent
|
---|
345 | // relations
|
---|
346 | //
|
---|
347 | if (!silent) {
|
---|
348 | Set<RelationToChildReference> references = RelationToChildReference.getRelationToChildReferences(primitivesToDelete);
|
---|
349 | Iterator<RelationToChildReference> it = references.iterator();
|
---|
350 | while(it.hasNext()) {
|
---|
351 | RelationToChildReference ref = it.next();
|
---|
352 | if (ref.getParent().isDeleted()) {
|
---|
353 | it.remove();
|
---|
354 | }
|
---|
355 | }
|
---|
356 | if (!references.isEmpty()) {
|
---|
357 | DeleteFromRelationConfirmationDialog dialog = DeleteFromRelationConfirmationDialog.getInstance();
|
---|
358 | dialog.getModel().populate(references);
|
---|
359 | dialog.setVisible(true);
|
---|
360 | if (dialog.isCanceled())
|
---|
361 | return null;
|
---|
362 | }
|
---|
363 | }
|
---|
364 |
|
---|
365 | // remove the objects from their parent relations
|
---|
366 | //
|
---|
367 | Iterator<Relation> iterator = OsmPrimitive.getFilteredSet(OsmPrimitive.getReferrer(primitivesToDelete), Relation.class).iterator();
|
---|
368 | while (iterator.hasNext()) {
|
---|
369 | Relation cur = iterator.next();
|
---|
370 | Relation rel = new Relation(cur);
|
---|
371 | rel.removeMembersFor(primitivesToDelete);
|
---|
372 | cmds.add(new ChangeCommand(cur, rel));
|
---|
373 | }
|
---|
374 |
|
---|
375 | // build the delete command
|
---|
376 | //
|
---|
377 | if (!primitivesToDelete.isEmpty()) {
|
---|
378 | cmds.add(new DeleteCommand(layer,primitivesToDelete));
|
---|
379 | }
|
---|
380 |
|
---|
381 | return new SequenceCommand(tr("Delete"), cmds);
|
---|
382 | }
|
---|
383 |
|
---|
384 | public static Command deleteWaySegment(OsmDataLayer layer, WaySegment ws) {
|
---|
385 | if (ws.way.getNodesCount() < 3)
|
---|
386 | return delete(layer, Collections.singleton(ws.way), false);
|
---|
387 |
|
---|
388 | if (ws.way.firstNode() == ws.way.lastNode()) {
|
---|
389 | // If the way is circular (first and last nodes are the same),
|
---|
390 | // the way shouldn't be splitted
|
---|
391 |
|
---|
392 | List<Node> n = new ArrayList<Node>();
|
---|
393 |
|
---|
394 | n.addAll(ws.way.getNodes().subList(ws.lowerIndex + 1, ws.way.getNodesCount() - 1));
|
---|
395 | n.addAll(ws.way.getNodes().subList(0, ws.lowerIndex + 1));
|
---|
396 |
|
---|
397 | Way wnew = new Way(ws.way);
|
---|
398 | wnew.setNodes(n);
|
---|
399 |
|
---|
400 | return new ChangeCommand(ws.way, wnew);
|
---|
401 | }
|
---|
402 |
|
---|
403 | List<Node> n1 = new ArrayList<Node>(), n2 = new ArrayList<Node>();
|
---|
404 |
|
---|
405 | n1.addAll(ws.way.getNodes().subList(0, ws.lowerIndex + 1));
|
---|
406 | n2.addAll(ws.way.getNodes().subList(ws.lowerIndex + 1, ws.way.getNodesCount()));
|
---|
407 |
|
---|
408 | Way wnew = new Way(ws.way);
|
---|
409 |
|
---|
410 | if (n1.size() < 2) {
|
---|
411 | wnew.setNodes(n2);
|
---|
412 | return new ChangeCommand(ws.way, wnew);
|
---|
413 | } else if (n2.size() < 2) {
|
---|
414 | wnew.setNodes(n1);
|
---|
415 | return new ChangeCommand(ws.way, wnew);
|
---|
416 | } else {
|
---|
417 | List<List<Node>> chunks = new ArrayList<List<Node>>(2);
|
---|
418 | chunks.add(n1);
|
---|
419 | chunks.add(n2);
|
---|
420 | return SplitWayAction.splitWay(layer,ws.way, chunks, Collections.<OsmPrimitive>emptyList()).getCommand();
|
---|
421 | }
|
---|
422 | }
|
---|
423 |
|
---|
424 | public static boolean checkAndConfirmOutlyingDelete(OsmDataLayer layer, Collection<? extends OsmPrimitive> primitives, OsmPrimitive ignore) {
|
---|
425 | return checkAndConfirmOutlyingDelete(layer.data.getDataSourceArea(), primitives, ignore);
|
---|
426 | }
|
---|
427 |
|
---|
428 | public static boolean checkAndConfirmOutlyingDelete(Area area, Collection<? extends OsmPrimitive> primitives, OsmPrimitive ignore) {
|
---|
429 | return Command.checkAndConfirmOutlyingOperation("delete",
|
---|
430 | tr("Delete confirmation"),
|
---|
431 | tr("You are about to delete nodes outside of the area you have downloaded."
|
---|
432 | + "<br>"
|
---|
433 | + "This can cause problems because other objects (that you do not see) might use them."
|
---|
434 | + "<br>"
|
---|
435 | + "Do you really want to delete?"),
|
---|
436 | tr("You are about to delete incomplete objects."
|
---|
437 | + "<br>"
|
---|
438 | + "This will cause problems because you don''t see the real object."
|
---|
439 | + "<br>" + "Do you really want to delete?"),
|
---|
440 | area, primitives, ignore);
|
---|
441 | }
|
---|
442 |
|
---|
443 | }
|
---|