Package org.openstreetmap.josm.actions
Class JoinAreasAction.JoinAreaCommand
java.lang.Object
org.openstreetmap.josm.command.Command
org.openstreetmap.josm.command.SequenceCommand
org.openstreetmap.josm.actions.JoinAreasAction.JoinAreaCommand
- All Implemented Interfaces:
PseudoCommand
- Enclosing class:
- JoinAreasAction
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.command.Command
Command.OldNodeState -
Field Summary
Fields inherited from class org.openstreetmap.josm.command.SequenceCommand
continueOnErrorFields inherited from class org.openstreetmap.josm.command.Command
IS_INCOMPLETE, IS_OK, IS_OUTSIDE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecutes the command on the dataset.voidUndoes the command.Methods inherited from class org.openstreetmap.josm.command.SequenceCommand
equals, fillModifiedData, getChildren, getDescriptionIcon, getDescriptionText, getLastCommand, getName, getParticipatingPrimitives, hashCode, setSequence, setSequenceComplete, undoCommands, wrapIfNeeded, wrapIfNeededMethods inherited from class org.openstreetmap.josm.command.Command
checkOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, getAffectedDataSet, getOrig
-
Constructor Details
-
JoinAreaCommand
JoinAreaCommand(Collection<Command> sequenz)
-
-
Method Details
-
undoCommand
Description copied from class:CommandUndoes the command. It can be assumed that all objects are in the same state they were before. It can also be assumed that executeCommand was called exactly once before. This implementation undoes all objects stored by a former call to executeCommand.- Overrides:
undoCommandin classSequenceCommand
-
executeCommand
Description copied from class:CommandExecutes the command on the dataset. This implementation will remember all primitives returned by fillModifiedData for restoring them on undo.The layer should be invalidated after execution so that it can be re-painted.
- Overrides:
executeCommandin classSequenceCommand- Returns:
- true
-