Class GTFrameTools.DelegatedUndoStackAttribute

    • Method Detail

      • mergeTopTwo

        public void mergeTopTwo()
        Description copied from class: UndoStackAttribute
        Merge the top two undo entries into a single action, unless we are in either a redo or an undo, in which case the merge happens automatically and need not be explicitly requested by the client. If there are fewer than two entries on the stack, do nothing. Note that when two entries are merged, the one on the top of the stack becomes the first one executed and the one below that on the stack becomes the second one executed. This method gets write access on the workspace.
        Overrides:
        mergeTopTwo in class UndoStackAttribute
      • push

        public void push​(UndoAction action)
        Description copied from class: UndoStackAttribute
        Push an action to the undo stack, or if we are executing an undo, onto the redo stack. This method gets write access on the workspace.
        Overrides:
        push in class UndoStackAttribute
        Parameters:
        action - The undo action.
      • redo

        public void redo()
                  throws java.lang.Exception
        Description copied from class: UndoStackAttribute
        Remove the top redo action and execute it. If there are no redo entries, do nothing. This method gets write access on the workspace.
        Overrides:
        redo in class UndoStackAttribute
        Throws:
        java.lang.Exception - If something goes wrong.
      • undo

        public void undo()
                  throws java.lang.Exception
        Description copied from class: UndoStackAttribute
        Remove the top undo action and execute it. If there are no undo entries, do nothing. This method gets write access on the workspace.
        Overrides:
        undo in class UndoStackAttribute
        Throws:
        java.lang.Exception - If something goes wrong.