|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.controller.Command oracle.jdeveloper.java.JavaManager.TransactionCommand
protected class JavaManager.TransactionCommand
A Command
implementation that wraps a committed
transaction. This will take care of IDE integration issues such as
Undo support and notification.
Field Summary |
---|
Fields inherited from class oracle.ide.controller.Command |
---|
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type |
Constructor Summary | |
---|---|
protected |
JavaManager.TransactionCommand(javax.swing.undo.UndoableEdit undoableEdit,
java.net.URL url,
TransactionDescriptor descriptor)
Constructs a new EditCommand for editing the
specified Document using the provided
Edit instance. |
protected |
JavaManager.TransactionCommand(java.net.URL url)
Constructs a new EditCommand for editing the
specified Document using the provided
Edit instance. |
Method Summary | |
---|---|
int |
doit()
Executes the actions associated with a specific command. |
int |
undo()
Called by the CommandProcessor to undo a command When a command executes successfully, implementations should return OK, otherwise, return CANCEL or any other non-zero value. |
Methods inherited from class oracle.ide.controller.Command |
---|
getAffectedNodes, getContext, getData, getId, getName, getType, isGlobal, setContext, setData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JavaManager.TransactionCommand(java.net.URL url)
EditCommand
for editing the
specified Document
using the provided
Edit
instance. The origin
is used in
the UpdateMessage
sent, so that Addins can identify
which UpdateMessages
originated from themselves.
This transaction is not undoable.
protected JavaManager.TransactionCommand(javax.swing.undo.UndoableEdit undoableEdit, java.net.URL url, TransactionDescriptor descriptor)
EditCommand
for editing the
specified Document
using the provided
Edit
instance. The origin
is used in
the UpdateMessage
sent, so that Addins can identify
which UpdateMessages
originated from themselves.
This transaction is undoable.
Method Detail |
---|
public final int doit() throws java.lang.Exception
doit
in class Command
java.lang.Exception
public final int undo() throws java.lang.Exception
undo
in class Command
java.lang.Exception
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |