Changeset 12718 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2017-09-04T00:50:22+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/AddCommand.java
r12663 r12718 45 45 * @param layer The data layer. Must not be {@code null} 46 46 * @param osm The primitive to add 47 * @deprecated to be removed end of 2017. Use {@link #AddCommand(DataSet, OsmPrimitive)} instead 47 48 */ 49 @Deprecated 48 50 public AddCommand(OsmDataLayer layer, OsmPrimitive osm) { 49 51 super(layer); -
trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
r11609 r12718 59 59 * @param toSelect The OSM primitives to select at the end. Can be {@code null} 60 60 * @param layer The target data layer. Must not be {@code null} 61 */ 61 * @deprecated to be removed end of 2017. Use {@link #AddPrimitivesCommand(List, List, DataSet)} instead 62 */ 63 @Deprecated 62 64 public AddPrimitivesCommand(List<PrimitiveData> data, List<PrimitiveData> toSelect, OsmDataLayer layer) { 63 65 super(layer); 66 init(data, toSelect); 67 } 68 69 /** 70 * Constructs a new {@code AddPrimitivesCommand} to add data to the given data set. 71 * @param data The OSM primitives data to add. Must not be {@code null} 72 * @param toSelect The OSM primitives to select at the end. Can be {@code null} 73 * @param ds The target data set. Must not be {@code null} 74 * @since 12718 75 */ 76 public AddPrimitivesCommand(List<PrimitiveData> data, List<PrimitiveData> toSelect, DataSet ds) { 77 super(ds); 64 78 init(data, toSelect); 65 79 } -
trunk/src/org/openstreetmap/josm/command/ChangeCommand.java
r12663 r12718 45 45 * @param osm The existing primitive to modify 46 46 * @param newOsm The new primitive 47 * @deprecated to be removed end of 2017. Use {@link #ChangeCommand(DataSet, OsmPrimitive, OsmPrimitive)} instead 47 48 */ 49 @Deprecated 48 50 public ChangeCommand(OsmDataLayer layer, OsmPrimitive osm, OsmPrimitive newOsm) { 49 51 super(layer); -
trunk/src/org/openstreetmap/josm/command/Command.java
r12636 r12718 35 35 * one atomic action on a specific dataset, such as move or delete. 36 36 * 37 * The command remembers the {@link OsmDataLayer} it is operating on.37 * The command remembers the {@link DataSet} it is operating on. 38 38 * 39 39 * @author imi … … 135 135 private Map<OsmPrimitive, PrimitiveData> cloneMap = new HashMap<>(); 136 136 137 /** the layer which this command is applied to */ 137 /** 138 * the layer which this command is applied to 139 * @deprecated to be removed end of 2017. Use {@link #data} instead 140 */ 141 @Deprecated 138 142 private final OsmDataLayer layer; 139 143 … … 146 150 public Command() { 147 151 this.layer = MainApplication.getLayerManager().getEditLayer(); 148 this.data = layer != null ? layer.data : null;152 this.data = layer != null ? layer.data : Main.main.getEditDataSet(); 149 153 } 150 154 … … 154 158 * @param layer the data layer. Must not be null. 155 159 * @throws IllegalArgumentException if layer is null 156 */ 160 * @deprecated to be removed end of 2017. Use {@link #Command(DataSet)} instead 161 */ 162 @Deprecated 157 163 public Command(OsmDataLayer layer) { 158 164 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); … … 216 222 * @param oldLayer the old layer that was removed 217 223 * @return true if this command is invalid after that layer is removed. 218 */ 224 * @deprecated to be removed end of 2017. 225 */ 226 @Deprecated 219 227 public boolean invalidBecauselayerRemoved(Layer oldLayer) { 220 228 return layer == oldLayer; … … 234 242 * Replies the layer this command is (or was) applied to. 235 243 * @return the layer this command is (or was) applied to 236 */ 244 * @deprecated to be removed end of 2017. Use {@link #getAffectedDataSet} instead 245 */ 246 @Deprecated 237 247 protected OsmDataLayer getLayer() { 238 248 return layer; … … 371 381 * Invalidate all layers that were affected by this command. 372 382 * @see Layer#invalidate() 373 */ 383 * @deprecated to be removed end of 2017. 384 */ 385 @Deprecated 374 386 public void invalidateAffectedLayers() { 375 387 OsmDataLayer layer = getLayer(); -
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r12663 r12718 108 108 109 109 /** 110 * Constructor for a single data item. Use the collection constructor to delete multiple 111 * objects. 110 * Constructor for a single data item. Use the collection constructor to delete multiple objects. 112 111 * 113 112 * @param layer the layer context for deleting this primitive. Must not be null. … … 115 114 * @throws IllegalArgumentException if data is null 116 115 * @throws IllegalArgumentException if layer is null 117 */ 116 * @deprecated to be removed end of 2017. Use {@link #DeleteCommand(DataSet, OsmPrimitive)} instead 117 */ 118 @Deprecated 118 119 public DeleteCommand(OsmDataLayer layer, OsmPrimitive data) { 119 120 this(layer, Collections.singleton(data)); … … 121 122 122 123 /** 123 * Constructor for a collection of data to be deleted in the context of 124 * a specific layer 124 * Constructor for a single data item. Use the collection constructor to delete multiple objects. 125 * 126 * @param dataset the data set context for deleting this primitive. Must not be null. 127 * @param data the primitive to delete. Must not be null. 128 * @throws IllegalArgumentException if data is null 129 * @throws IllegalArgumentException if layer is null 130 * @since 12718 131 */ 132 public DeleteCommand(DataSet dataset, OsmPrimitive data) { 133 this(dataset, Collections.singleton(data)); 134 } 135 136 /** 137 * Constructor for a collection of data to be deleted in the context of a specific layer 125 138 * 126 139 * @param layer the layer context for deleting these primitives. Must not be null. … … 128 141 * @throws IllegalArgumentException if layer is null 129 142 * @throws IllegalArgumentException if data is null or empty 130 */ 143 * @deprecated to be removed end of 2017. Use {@link #DeleteCommand(DataSet, Collection)} instead 144 */ 145 @Deprecated 131 146 public DeleteCommand(OsmDataLayer layer, Collection<? extends OsmPrimitive> data) { 132 147 super(layer); … … 137 152 138 153 /** 139 * Constructor for a collection of data to be deleted in the context of 140 * a specific data set 154 * Constructor for a collection of data to be deleted in the context of a specific data set 141 155 * 142 156 * @param dataset the dataset context for deleting these primitives. Must not be null. … … 286 300 * @return command A command to perform the deletions, or null of there is nothing to delete. 287 301 * @throws IllegalArgumentException if layer is null 288 */ 302 * @deprecated to be removed end of 2017. Use {@link #deleteWithReferences(Collection, boolean)} instead 303 */ 304 @Deprecated 289 305 public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, boolean silent) { 290 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); 306 return deleteWithReferences(selection, silent); 307 } 308 309 /** 310 * Delete the primitives and everything they reference. 311 * 312 * If a node is deleted, the node and all ways and relations the node is part of are deleted as well. 313 * If a way is deleted, all relations the way is member of are also deleted. 314 * If a way is deleted, only the way and no nodes are deleted. 315 * 316 * @param selection The list of all object to be deleted. 317 * @param silent Set to true if the user should not be bugged with additional dialogs 318 * @return command A command to perform the deletions, or null of there is nothing to delete. 319 * @throws IllegalArgumentException if layer is null 320 * @since 12718 321 */ 322 public static Command deleteWithReferences(Collection<? extends OsmPrimitive> selection, boolean silent) { 291 323 if (selection == null || selection.isEmpty()) return null; 292 324 Set<OsmPrimitive> parents = OsmPrimitive.getReferrer(selection); … … 297 329 if (!silent && !checkAndConfirmOutlyingDelete(parents, null)) 298 330 return null; 299 return new DeleteCommand( layer, parents);331 return new DeleteCommand(parents.iterator().next().getDataSet(), parents); 300 332 } 301 333 … … 307 339 * If a way is deleted, only the way and no nodes are deleted. 308 340 * 309 * @param layer the {@link OsmDataLayer} in whose context primitives are deleted. Must not be null.341 * @param layer unused 310 342 * @param selection The list of all object to be deleted. 311 343 * @return command A command to perform the deletions, or null of there is nothing to delete. 312 344 * @throws IllegalArgumentException if layer is null 313 */ 345 * @deprecated to be removed end of 2017. Use {@link #deleteWithReferences(Collection)} instead 346 */ 347 @Deprecated 314 348 public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection) { 315 return deleteWithReferences(layer, selection, false); 349 return deleteWithReferences(selection); 350 } 351 352 /** 353 * Delete the primitives and everything they reference. 354 * 355 * If a node is deleted, the node and all ways and relations the node is part of are deleted as well. 356 * If a way is deleted, all relations the way is member of are also deleted. 357 * If a way is deleted, only the way and no nodes are deleted. 358 * 359 * @param selection The list of all object to be deleted. 360 * @return command A command to perform the deletions, or null of there is nothing to delete. 361 * @throws IllegalArgumentException if layer is null 362 * @since 12718 363 */ 364 public static Command deleteWithReferences(Collection<? extends OsmPrimitive> selection) { 365 return deleteWithReferences(selection, false); 316 366 } 317 367 … … 325 375 * they are part of a relation, inform the user and do not delete. 326 376 * 327 * @param layer the {@link OsmDataLayer} in whose context the primitives are deleted377 * @param layer unused 328 378 * @param selection the objects to delete. 329 379 * @return command a command to perform the deletions, or null if there is nothing to delete. 330 */ 380 * @deprecated to be removed end of 2017. Use {@link #delete(Collection)} instead 381 */ 382 @Deprecated 331 383 public static Command delete(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection) { 332 return delete(layer, selection, true, false); 384 return delete(selection); 385 } 386 387 /** 388 * Try to delete all given primitives. 389 * 390 * If a node is used by a way, it's removed from that way. If a node or a way is used by a 391 * relation, inform the user and do not delete. 392 * 393 * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If 394 * they are part of a relation, inform the user and do not delete. 395 * 396 * @param selection the objects to delete. 397 * @return command a command to perform the deletions, or null if there is nothing to delete. 398 * @since 12718 399 */ 400 public static Command delete(Collection<? extends OsmPrimitive> selection) { 401 return delete(selection, true, false); 333 402 } 334 403 … … 376 445 * they are part of a relation, inform the user and do not delete. 377 446 * 378 * @param layer the {@link OsmDataLayer} in whose context the primitives are deleted447 * @param layer unused 379 448 * @param selection the objects to delete. 380 449 * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well 381 450 * @return command a command to perform the deletions, or null if there is nothing to delete. 382 */ 451 * @deprecated to be removed end of 2017. Use {@link #delete(Collection, boolean)} instead 452 */ 453 @Deprecated 383 454 public static Command delete(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, 384 455 boolean alsoDeleteNodesInWay) { 385 return delete( layer, selection, alsoDeleteNodesInWay, false /* not silent */);456 return delete(selection, alsoDeleteNodesInWay); 386 457 } 387 458 … … 395 466 * they are part of a relation, inform the user and do not delete. 396 467 * 397 * @param layer the {@link OsmDataLayer} in whose context the primitives are deleted 468 * @param selection the objects to delete. 469 * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well 470 * @return command a command to perform the deletions, or null if there is nothing to delete. 471 * @since 12718 472 */ 473 public static Command delete(Collection<? extends OsmPrimitive> selection, boolean alsoDeleteNodesInWay) { 474 return delete(selection, alsoDeleteNodesInWay, false /* not silent */); 475 } 476 477 /** 478 * Try to delete all given primitives. 479 * 480 * If a node is used by a way, it's removed from that way. If a node or a way is used by a 481 * relation, inform the user and do not delete. 482 * 483 * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If 484 * they are part of a relation, inform the user and do not delete. 485 * 486 * @param layer unused 398 487 * @param selection the objects to delete. 399 488 * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well 400 489 * @param silent set to true if the user should not be bugged with additional questions 401 490 * @return command a command to perform the deletions, or null if there is nothing to delete. 402 */ 491 * @deprecated to be removed end of 2017. Use {@link #delete(Collection, boolean, boolean)} instead 492 */ 493 @Deprecated 403 494 public static Command delete(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, 404 495 boolean alsoDeleteNodesInWay, boolean silent) { 496 return delete(selection, alsoDeleteNodesInWay, silent); 497 } 498 499 /** 500 * Try to delete all given primitives. 501 * 502 * If a node is used by a way, it's removed from that way. If a node or a way is used by a 503 * relation, inform the user and do not delete. 504 * 505 * If this would cause ways with less than 2 nodes to be created, delete these ways instead. If 506 * they are part of a relation, inform the user and do not delete. 507 * 508 * @param selection the objects to delete. 509 * @param alsoDeleteNodesInWay <code>true</code> if nodes should be deleted as well 510 * @param silent set to true if the user should not be bugged with additional questions 511 * @return command a command to perform the deletions, or null if there is nothing to delete. 512 * @since 12718 513 */ 514 public static Command delete(Collection<? extends OsmPrimitive> selection, boolean alsoDeleteNodesInWay, boolean silent) { 405 515 if (selection == null || selection.isEmpty()) 406 516 return null; … … 460 570 // 461 571 if (!primitivesToDelete.isEmpty()) { 462 cmds.add(layer != null ? new DeleteCommand(layer, primitivesToDelete) : 463 new DeleteCommand(primitivesToDelete.iterator().next().getDataSet(), primitivesToDelete)); 572 cmds.add(new DeleteCommand(primitivesToDelete.iterator().next().getDataSet(), primitivesToDelete)); 464 573 } 465 574 … … 469 578 /** 470 579 * Create a command that deletes a single way segment. The way may be split by this. 471 * @param layer The layer the segment is in.580 * @param layer unused 472 581 * @param ws The way segment that should be deleted 473 582 * @return A matching command to safely delete that segment. 474 */ 583 * @deprecated to be removed end of 2017. Use {@link #deleteWaySegment(WaySegment)} instead 584 */ 585 @Deprecated 475 586 public static Command deleteWaySegment(OsmDataLayer layer, WaySegment ws) { 587 return deleteWaySegment(ws); 588 } 589 590 /** 591 * Create a command that deletes a single way segment. The way may be split by this. 592 * @param ws The way segment that should be deleted 593 * @return A matching command to safely delete that segment. 594 * @since 12718 595 */ 596 public static Command deleteWaySegment(WaySegment ws) { 476 597 if (ws.way.getNodesCount() < 3) 477 return delete( layer,Collections.singleton(ws.way), false);598 return delete(Collections.singleton(ws.way), false); 478 599 479 600 if (ws.way.isClosed()) { … … 506 627 return new ChangeCommand(ws.way, wnew); 507 628 } else { 508 SplitWayResult split = SplitWayAction.splitWay( layer,ws.way, Arrays.asList(n1, n2), Collections.<OsmPrimitive>emptyList());629 SplitWayResult split = SplitWayAction.splitWay(ws.way, Arrays.asList(n1, n2), Collections.<OsmPrimitive>emptyList()); 509 630 return split != null ? split.getCommand() : null; 510 631 } -
trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
r12688 r12718 54 54 * @param toPurge primitives to purge 55 55 * @param makeIncomplete primitives to make incomplete 56 * @deprecated to be removed end of 2017. Use {@link #PurgeCommand(DataSet, Collection, Collection)} instead 56 57 */ 58 @Deprecated 57 59 public PurgeCommand(OsmDataLayer layer, Collection<OsmPrimitive> toPurge, Collection<OsmPrimitive> makeIncomplete) { 58 60 super(layer); … … 319 321 * @return command to purge selected OSM primitives 320 322 * @since 12688 323 * @deprecated to be removed end of 2017. Use {@link #build(Collection, List)} instead 321 324 */ 325 @Deprecated 322 326 public static PurgeCommand build(OsmDataLayer layer, Collection<OsmPrimitive> sel, List<OsmPrimitive> toPurgeAdditionally) { 327 return build(sel, toPurgeAdditionally); 328 } 329 330 /** 331 * Creates a new {@code PurgeCommand} to purge selected OSM primitives. 332 * @param sel selected OSM primitives 333 * @param toPurgeAdditionally optional list that will be filled with primitives to be purged that have not been in the selection 334 * @return command to purge selected OSM primitives 335 * @since 12718 336 */ 337 public static PurgeCommand build(Collection<OsmPrimitive> sel, List<OsmPrimitive> toPurgeAdditionally) { 323 338 Set<OsmPrimitive> toPurge = new HashSet<>(sel); 324 339 // finally, contains all objects that are purged … … 423 438 } 424 439 425 return layer != null ? new PurgeCommand(layer, toPurgeChecked, makeIncomplete) 426 : new PurgeCommand(toPurgeChecked.iterator().next().getDataSet(), toPurgeChecked, makeIncomplete); 440 return new PurgeCommand(toPurgeChecked.iterator().next().getDataSet(), toPurgeChecked, makeIncomplete); 427 441 } 428 442 -
trunk/src/org/openstreetmap/josm/command/SequenceCommand.java
r11874 r12718 12 12 13 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 import org.openstreetmap.josm.gui.layer.Layer; 14 15 import org.openstreetmap.josm.tools.ImageProvider; 15 16 import org.openstreetmap.josm.tools.Utils; … … 136 137 } 137 138 139 /** 140 * Invalidate all layers that were affected by this command. 141 * @see Layer#invalidate() 142 * @deprecated to be removed end of 2017. 143 */ 138 144 @Override 145 @Deprecated 139 146 public void invalidateAffectedLayers() { 140 147 super.invalidateAffectedLayers(); -
trunk/src/org/openstreetmap/josm/command/conflict/ConflictAddCommand.java
r12672 r12718 16 16 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; 17 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 18 import org.openstreetmap.josm.gui.MainApplication;19 18 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 20 19 import org.openstreetmap.josm.tools.ImageProvider; … … 33 32 * @param layer the data layer. Must not be null. 34 33 * @param conflict the conflict to add 34 * @deprecated to be removed end of 2017. Use {@link #ConflictAddCommand(DataSet, Conflict)} instead 35 35 */ 36 @Deprecated 36 37 public ConflictAddCommand(OsmDataLayer layer, Conflict<? extends OsmPrimitive> conflict) { 37 38 super(layer); … … 56 57 + "''{1}''.<br>" 57 58 + "This conflict cannot be added.</html>", 58 Utils.escapeReservedCharactersHTML(get Layer().getName()),59 Utils.escapeReservedCharactersHTML(getAffectedDataSet().getName()), 59 60 Utils.escapeReservedCharactersHTML(conflict.getMy().getDisplayName(DefaultNameFormatter.getInstance())) 60 61 ), … … 77 78 @Override 78 79 public void undoCommand() { 79 if (MainApplication.isDisplayingMapView() && !MainApplication.getLayerManager().containsLayer(getLayer())) { 80 DataSet ds = getAffectedDataSet(); 81 if (!Main.main.containsDataSet(ds)) { 80 82 Logging.warn(tr("Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.", 81 getLayer().getName(),83 ds.getName(), 82 84 conflict.getMy().getDisplayName(DefaultNameFormatter.getInstance()) 83 85 )); 84 86 return; 85 87 } 86 getAffectedDataSet().getConflicts().remove(conflict);88 ds.getConflicts().remove(conflict); 87 89 } 88 90 -
trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java
r12672 r12718 6 6 import java.util.Objects; 7 7 8 import org.openstreetmap.josm.Main; 8 9 import org.openstreetmap.josm.command.Command; 9 10 import org.openstreetmap.josm.data.conflict.Conflict; 10 11 import org.openstreetmap.josm.data.conflict.ConflictCollection; 11 12 import org.openstreetmap.josm.data.osm.DataSet; 12 import org.openstreetmap.josm.gui.MainApplication;13 13 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 14 14 import org.openstreetmap.josm.tools.Logging; … … 24 24 public abstract class ConflictResolveCommand extends Command { 25 25 /** the list of resolved conflicts */ 26 private final ConflictCollection resolvedConflicts ;26 private final ConflictCollection resolvedConflicts = new ConflictCollection(); 27 27 28 28 /** … … 30 30 */ 31 31 public ConflictResolveCommand() { 32 super(); 33 resolvedConflicts = new ConflictCollection(); 32 // Do nothing 34 33 } 35 34 … … 37 36 * Constructs a new {@code ConflictResolveCommand} in the context of a given data layer. 38 37 * @param layer the data layer. Must not be null. 38 * @deprecated to be removed end of 2017. Use {@link #ConflictResolveCommand(DataSet)} instead 39 39 */ 40 @Deprecated 40 41 public ConflictResolveCommand(OsmDataLayer layer) { 41 42 super(layer); 42 resolvedConflicts = new ConflictCollection(); 43 } 44 45 /** 46 * Constructs a new {@code ConflictResolveCommand} in the context of a given data set. 47 * @param ds the data set. Must not be null. 48 */ 49 public ConflictResolveCommand(DataSet ds) { 50 super(ds); 43 51 } 44 52 … … 56 64 /** 57 65 * reconstitutes all remembered conflicts. Add the remembered conflicts to the 58 * set of conflicts of the {@link OsmDataLayer} this command was applied to.66 * set of conflicts of the {@link DataSet} this command was applied to. 59 67 * 60 68 */ … … 72 80 super.undoCommand(); 73 81 74 if (MainApplication.isDisplayingMapView()) {75 if (!MainApplication.getLayerManager().containsLayer(getLayer())) {76 77 78 getLayer().toString()79 80 81 82 DataSet ds = getAffectedDataSet(); 83 if (!Main.main.containsDataSet(ds)) { 84 Logging.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 85 this.toString(), 86 ds.getName() 87 )); 88 return; 89 } 82 90 83 MainApplication.getLayerManager().setActiveLayer(getLayer()); 84 } 91 Main.main.setEditDataSet(ds); 85 92 reconstituteConflicts(); 86 93 } -
trunk/src/org/openstreetmap/josm/command/conflict/RelationMemberConflictResolverCommand.java
r12672 r12718 10 10 import javax.swing.Icon; 11 11 12 import org.openstreetmap.josm.Main; 12 13 import org.openstreetmap.josm.data.conflict.Conflict; 13 14 import org.openstreetmap.josm.data.osm.DataSet; … … 15 16 import org.openstreetmap.josm.data.osm.Relation; 16 17 import org.openstreetmap.josm.data.osm.RelationMember; 17 import org.openstreetmap.josm.gui.MainApplication;18 import org.openstreetmap.josm.gui.layer.OsmDataLayer;19 18 import org.openstreetmap.josm.tools.ImageProvider; 20 19 import org.openstreetmap.josm.tools.Logging; … … 72 71 @Override 73 72 public void undoCommand() { 74 OsmDataLayer layer = getLayer();75 if (!Main Application.getLayerManager().containsLayer(layer)) {73 DataSet editDs = getAffectedDataSet(); 74 if (!Main.main.containsDataSet(editDs)) { 76 75 Logging.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 77 76 this.toString(), 78 layer.toString()77 editDs.getName() 79 78 )); 80 79 return; 81 80 } 82 81 83 MainApplication.getLayerManager().setActiveLayer(layer); 84 DataSet editDs = MainApplication.getLayerManager().getEditDataSet(); 82 Main.main.setEditDataSet(editDs); 85 83 86 84 // restore the former state
Note: See TracChangeset
for help on using the changeset viewer.