Class BulkUndoableOperation

  • All Implemented Interfaces:
    UndoableOperation

    public class BulkUndoableOperation
    extends java.lang.Object
    implements UndoableOperation
    Holds a list of undo-able operations which can be undone/re-done as a bulk operation (at once).
    • Constructor Detail

      • BulkUndoableOperation

        public BulkUndoableOperation​(java.util.List<UndoableOperation> operations)
    • Method Detail

      • setShowOperationCount

        public void setShowOperationCount​(boolean showOperationCount)
      • isShowOperationCount

        public boolean isShowOperationCount()
      • canUndo

        public boolean canUndo()
        Description copied from interface: UndoableOperation
        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.
        Specified by:
        canUndo in interface UndoableOperation
        Returns:
        true is the operation can be undone, false otherwise
      • canRedo

        public boolean canRedo()
        Description copied from interface: UndoableOperation
        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.
        Specified by:
        canRedo in interface UndoableOperation
        Returns:
        true is the operation can be redone, false otherwise
      • getUndoPresentationName

        public java.lang.String getUndoPresentationName()
        Description copied from interface: UndoableOperation
        A human readable description of the undo operation (such as "Undo edit").
        Specified by:
        getUndoPresentationName in interface UndoableOperation
        Returns:
        human readable description of the undo operation (such as "Undo edit")
      • getRedoPresentationName

        public java.lang.String getRedoPresentationName()
        Description copied from interface: UndoableOperation
        A human readable description of the re-do operation (such as "Re-do edit").
        Specified by:
        getRedoPresentationName in interface UndoableOperation
        Returns:
        human readable description of the re-do operation (such as "Re-do edit")