| java.lang.Object com.vividsolutions.jump.workbench.model.UndoableEditReceiver
UndoableEditReceiver | public class UndoableEditReceiver (Code) | | Receives UndoableEdits from PlugIns and CursorTools. Also provides access to
a Task's UndoManager.
In the documentation, the "receiving phase" refers to the time between the
calls to #start and #stop.
If there is an exception that leaves this UndoableCommand execution
partially complete and non-unexecutable, be sure to call
#reportIrreversibleChange()
|
Inner Class :public static interface Listener | |
Method Summary | |
public void | add(Listener listener) | public UndoManager | getUndoManager() | public boolean | isReceiving() | public void | receive(UndoableEdit undoableEdit) If the currently executing PlugIn or AbstractCursorTool is not undoable,
it should simply not call this method; the undo history will be cleared. | public void | reportIrreversibleChange() Notifies this UndoableEditReceiver that something non-undoable has
happened. | public void | reportNothingToUndoYet() Specifies that the undo history should not be modified at the end of
the current receiving phase, if neither #receive nor #reportIrreversibleChange
is called. | public void | startReceiving() | public void | stopReceiving() |
UndoableEditReceiver | public UndoableEditReceiver()(Code) | | |
add | public void add(Listener listener)(Code) | | |
isReceiving | public boolean isReceiving()(Code) | | |
receive | public void receive(UndoableEdit undoableEdit)(Code) | | If the currently executing PlugIn or AbstractCursorTool is not undoable,
it should simply not call this method; the undo history will be cleared.
|
reportIrreversibleChange | public void reportIrreversibleChange()(Code) | | Notifies this UndoableEditReceiver that something non-undoable has
happened. Be sure to call this if an Exception occurs during the execution
of an UndoableCommand, leaving it partially complete and non-unexecutable.
|
reportNothingToUndoYet | public void reportNothingToUndoYet()(Code) | | Specifies that the undo history should not be modified at the end of
the current receiving phase, if neither #receive nor #reportIrreversibleChange
is called. If none of the three methods are called during the receiving
phase, an irreversible change is assumed to have occurred, and the
undo history will be truncated.
|
startReceiving | public void startReceiving()(Code) | | |
stopReceiving | public void stopReceiving()(Code) | | |
|
|