Class ValidatorDialog.AutofixCommand
- java.lang.Object
-
- org.openstreetmap.josm.command.Command
-
- org.openstreetmap.josm.command.SequenceCommand
-
- org.openstreetmap.josm.gui.dialogs.ValidatorDialog.AutofixCommand
-
- All Implemented Interfaces:
PseudoCommand
- Enclosing class:
- ValidatorDialog
private static class ValidatorDialog.AutofixCommand extends SequenceCommand
-
-
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
continueOnError
-
Fields inherited from class org.openstreetmap.josm.command.Command
IS_INCOMPLETE, IS_OK, IS_OUTSIDE
-
-
Constructor Summary
Constructors Constructor Description AutofixCommand(java.util.Collection<Command> sequenz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
executeCommand()
Executes the command on the dataset.void
undoCommand()
Undoes the command.-
Methods inherited from class org.openstreetmap.josm.command.SequenceCommand
equals, fillModifiedData, getChildren, getDescriptionIcon, getDescriptionText, getLastCommand, getName, getParticipatingPrimitives, hashCode, setSequence, setSequenceComplete, undoCommands, wrapIfNeeded, wrapIfNeeded
-
Methods inherited from class org.openstreetmap.josm.command.Command
checkOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, getAffectedDataSet, getOrig
-
-
-
-
Constructor Detail
-
AutofixCommand
AutofixCommand(java.util.Collection<Command> sequenz)
-
-
Method Detail
-
undoCommand
public void undoCommand()
Description copied from class:Command
Undoes 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:
undoCommand
in classSequenceCommand
-
executeCommand
public boolean executeCommand()
Description copied from class:Command
Executes 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:
executeCommand
in classSequenceCommand
- Returns:
- true
-
-