Class UndoManager
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.UndoManager
 
- 
 public class UndoManager extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceUndoManager.UndoActionstatic classUndoManager.UndoStack
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(UndoManager.UndoAction action)Adds an undo action into the currently selected contextvoidadd(UndoManager.UndoAction action, java.lang.Object context)Adds an undo action for the given context.voiddestroyContext(java.lang.Object context)voiddisableActions()voiddoRedo()voiddoUndo()static UndoManagergetInstance()javax.swing.ActiongetRedoAction()java.lang.ObjectgetSelectedContext()javax.swing.ActiongetUndoAction()voidreset()voidsetSelectedContext(java.lang.Object context)Called by the property change listener when the window changes, or by other contexts who manage their own selectednessvoidupdateActions()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 Detail- 
getInstancepublic static UndoManager 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() 
 - 
setSelectedContextpublic void setSelectedContext(java.lang.Object context) 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 implement- UndoDelegateContextfor UI areas that want to manage their own Undo/Redo stack.
 
 - 
destroyContextpublic void destroyContext(java.lang.Object context) 
 - 
getSelectedContextpublic java.lang.Object getSelectedContext() 
 - 
resetpublic void reset() 
 - 
getUndoActionpublic javax.swing.Action getUndoAction() 
 - 
getRedoActionpublic javax.swing.Action getRedoAction() 
 - 
doUndopublic void doUndo() 
 - 
doRedopublic void doRedo() 
 - 
addpublic void add(UndoManager.UndoAction action) Adds an undo action into the currently selected context
 - 
addpublic void add(UndoManager.UndoAction action, java.lang.Object context) Adds an undo action for the given context.
 
- 
 
-