Class UndoManager
java.lang.Object
com.inductiveautomation.ignition.designer.UndoManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(UndoManager.UndoAction action) Adds an undo action into the currently selected contextvoidadd(UndoManager.UndoAction action, Object context) Adds an undo action for the given context.voiddestroyContext(Object context) voidvoiddoRedo()voiddoUndo()static UndoManagervoidreset()voidsetSelectedContext(Object context) Called by the property change listener when the window changes, or by other contexts who manage their own selectednessvoidCalled 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 implementUndoDelegateContextfor 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.
-