public abstract class UndoableCommand extends Object
UndoableEdit| Modifier and Type | Field and Description |
|---|---|
static UndoableCommand |
DUMMY |
| Constructor and Description |
|---|
UndoableCommand(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispose()
Releases resources.
|
abstract void |
execute()
If there is an exception that leaves this UndoableCommand execution
partially complete and non-unexecutable, be sure to call #reportIrreversibleChange()
on the UndoableEditReceiver (which can be obtained from the LayerManager).
|
String |
getName() |
UndoableEdit |
toUndoableEdit() |
abstract void |
unexecute() |
public static final UndoableCommand DUMMY
public UndoableCommand(String name)
protected void dispose()
public abstract void execute()
public abstract void unexecute()
public UndoableEdit toUndoableEdit()
public String getName()
Copyright © 2015. All rights reserved.