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
  • Constructor Details

  • Method Details

    • 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 class SequenceCommand
    • 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 class SequenceCommand
      Returns:
      true