|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.controller.Command
oracle.ide.ceditor.UndoWrapperCommand
public final class UndoWrapperCommand
The UndoWrapperCommand
class implements the IDE command and is used by the Code Editor to wrap undo messages generated by user typing. It relies on the updater to notify observers of the Node with an UpdateMessager.
Command
Field Summary |
---|
Fields inherited from class oracle.ide.controller.Command |
---|
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type |
Constructor Summary | |
---|---|
UndoWrapperCommand(javax.swing.undo.UndoableEdit edit, java.lang.Object updater) Constructs a new UndoWrapperCommand based on the given edit and editor. |
Method Summary | |
---|---|
int |
doit() Apply the change represented by edit. |
java.lang.String |
getName() Gets the name of the command to display as the action to undo |
int |
undo() Undo the change represented by the edit. |
Methods inherited from class oracle.ide.controller.Command |
---|
enableConfirmation, getAffectedNodes, getContext, getData, getId, getType, isGlobal, setContext, setData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoWrapperCommand(javax.swing.undo.UndoableEdit edit, java.lang.Object updater)
edit
- the edit changeupdater
- the node updater to storeMethod Detail |
---|
public int doit()
doit
in class Command
public int undo()
undo
in class Command
public java.lang.String getName()
getName
in class Command
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |