Class UndoManager
java.lang.Object
com.inductiveautomation.ignition.designer.UndoManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(UndoManager.UndoAction action) Adds an undo action into the currently selected contextvoid
add
(UndoManager.UndoAction action, Object context) Adds an undo action for the given context.void
destroyContext
(Object context) void
void
doRedo()
void
doUndo()
static UndoManager
void
reset()
void
setSelectedContext
(Object context) Called by the property change listener when the window changes, or by other contexts who manage their own selectednessvoid
Called whenever things are added/removed to the current stack or the current stack changes, so the actions need to be updated b/c the top of the stack has effectively changed
-
Method Details
-
getInstance
-
updateActions
public void updateActions()Called whenever things are added/removed to the current stack or the current stack changes, so the actions need to be updated b/c the top of the stack has effectively changed -
disableActions
public void disableActions() -
setSelectedContext
Called by the property change listener when the window changes, or by other contexts who manage their own selectedness- Parameters:
context
- An object that uniquely represents a portion of the UI that will be adding UndoAction objects. Optionally may implementUndoDelegateContext
for UI areas that want to manage their own Undo/Redo stack.
-
destroyContext
-
getSelectedContext
-
reset
public void reset() -
getUndoAction
-
getRedoAction
-
doUndo
public void doUndo() -
doRedo
public void doRedo() -
add
Adds an undo action into the currently selected context -
add
Adds an undo action for the given context.
-