protected class JavaManager.TransactionCommand extends Command
Command
implementation that wraps a committed transaction. This will take care of IDE integration issues such as Undo support and notification.Modifier | Constructor and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo
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.public final int doit() throws java.lang.Exception
public final int undo() throws java.lang.Exception