Package com.illumon.iris.console
Class MergedUndoManager
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.undo.UndoManager
com.illumon.iris.console.MergedUndoManager
- All Implemented Interfaces:
Serializable,EventListener,UndoableEditListener,UndoableEdit
public class MergedUndoManager extends UndoManager
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MergedUndoManager() -
Method Summary
Modifier and Type Method Description booleanaddEdit(UndoableEdit edit)booleancanRedo()booleancanUndo()voiddiscardAllEdits()voidflush()voidforceMerge()voidredo()voidundo()Methods inherited from class javax.swing.undo.UndoManager
canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, undoableEditHappened, undoOrRedo, undoToMethods inherited from class javax.swing.undo.CompoundEdit
die, getPresentationName, isInProgress, isSignificant, lastEdit
-
Constructor Details
-
MergedUndoManager
public MergedUndoManager()
-
-
Method Details
-
addEdit
- Specified by:
addEditin interfaceUndoableEdit- Overrides:
addEditin classUndoManager
-
flush
public void flush() -
discardAllEdits
public void discardAllEdits()- Overrides:
discardAllEditsin classUndoManager
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classUndoManager- Throws:
CannotUndoException
-
redo
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classUndoManager- Throws:
CannotRedoException
-
canRedo
public boolean canRedo()- Specified by:
canRedoin interfaceUndoableEdit- Overrides:
canRedoin classUndoManager
-
canUndo
public boolean canUndo()- Specified by:
canUndoin interfaceUndoableEdit- Overrides:
canUndoin classUndoManager
-
forceMerge
public void forceMerge()
-