Interface UndoableOperation

    • Method Detail

      • canUndo

        boolean canUndo()
        Returns true if the operation can be undone. May return false if in the meantime the object model is in a state that this operation cannot be made undone anymore.
        Returns:
        true is the operation can be undone, false otherwise
      • canRedo

        boolean canRedo()
        Returns true is the operation can be redone. May return false if in the meantime the object model is in a state that this operation cannot be made redone. Note that you don't have to keep track if the operation has been undone.
        Returns:
        true is the operation can be redone, false otherwise
      • getUndoPresentationName

        java.lang.String getUndoPresentationName()
        A human readable description of the undo operation (such as "Undo edit").
        Returns:
        human readable description of the undo operation (such as "Undo edit")
      • getRedoPresentationName

        java.lang.String getRedoPresentationName()
        A human readable description of the re-do operation (such as "Re-do edit").
        Returns:
        human readable description of the re-do operation (such as "Re-do edit")
      • getUndoContextDescription

        java.lang.String getUndoContextDescription()
      • getRedoContextDescription

        java.lang.String getRedoContextDescription()