|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.model.UndoableEditReceiver
public class UndoableEditReceiver
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()
| Nested Class Summary | |
|---|---|
static interface |
UndoableEditReceiver.Listener
|
| Constructor Summary | |
|---|---|
UndoableEditReceiver()
|
|
| Method Summary | |
|---|---|
void |
add(UndoableEditReceiver.Listener listener)
|
javax.swing.undo.UndoManager |
getUndoManager()
|
boolean |
isReceiving()
|
void |
receive(javax.swing.undo.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. |
void |
reportIrreversibleChange()
Notifies this UndoableEditReceiver that something non-undoable has happened. |
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. |
void |
startReceiving()
|
void |
stopReceiving()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UndoableEditReceiver()
| Method Detail |
|---|
public void startReceiving()
public void reportNothingToUndoYet()
public void reportIrreversibleChange()
public void stopReceiving()
public void add(UndoableEditReceiver.Listener listener)
public void receive(javax.swing.undo.UndoableEdit undoableEdit)
public javax.swing.undo.UndoManager getUndoManager()
public boolean isReceiving()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||