Class UndoManager
java.lang.Object
com.inductiveautomation.ignition.designer.UndoManager
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic class
- 
Method SummaryModifier 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
- 
updateActionspublic 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
- 
disableActionspublic void disableActions()
- 
setSelectedContextCalled 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 implement- UndoDelegateContextfor UI areas that want to manage their own Undo/Redo stack.
 
- 
destroyContext
- 
getSelectedContext
- 
resetpublic void reset()
- 
getUndoAction
- 
getRedoAction
- 
doUndopublic void doUndo()
- 
doRedopublic void doRedo()
- 
addAdds an undo action into the currently selected context
- 
addAdds an undo action for the given context.
 
-