Extension SDK

oracle.ide.cmd
Class RevertNodeCommand

java.lang.Object
  |
  +--oracle.ide.addin.AbstractCommand
        |
        +--oracle.ide.cmd.RevertNodeCommand
All Implemented Interfaces:
Command

public class RevertNodeCommand
extends AbstractCommand

The RevertNodeCommand is used to revert the contents of a node to its persistent storage, and to send the appropriate notification. This command cannot be undone.

See Also:
Command,

Fields inherited from class oracle.ide.addin.AbstractCommand
cmdId, context, name, type
 
Fields inherited from interface oracle.ide.addin.Command
CANCEL, EXECUTING, NO_CHANGE, NO_UNDO, NORMAL, OK
 
Constructor Summary
RevertNodeCommand()
          Constructs a new RevertNodeCommand.
 
Method Summary
 int doit()
          Executes the actions associated with a specific command.
 
Methods inherited from class oracle.ide.addin.AbstractCommand
getAffectedDocuments, getContext, getData, getId, getName, getType, setContext, setData, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevertNodeCommand

public RevertNodeCommand()
Constructs a new RevertNodeCommand. This command cannot be undone.
Method Detail

doit

public int doit()
         throws java.lang.Exception
Executes the actions associated with a specific command. When a command executes successfully, implementations should return OK, otherwise, return CANCEL or any other non-zero value.
Returns:
OK for success, or CANCEL otherwise

Extension SDK