Extension SDK

oracle.ide.cmd
Class RenameCommand

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

public class RenameCommand
extends SaveAsCommand

The RenameCommand class implements the Rename command.

See Also:
oracle.ide.Command

Fields inherited from class oracle.ide.cmd.SaveAsCommand
_context, _duplicate, _elementOwner, _newURL, _nodeClass, CANCELED, OK_NAME_CHANGED, OK_NAME_UNCHANGED
 
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
RenameCommand()
          Constructor.
 
Method Summary
 int doit()
          Rename the selected element
protected  int saveDocument(Document doc)
           
 
Methods inherited from class oracle.ide.cmd.SaveAsCommand
convertToDupNode, convertToNewNode, doSaveAs, getElementOwner, saveAsDupNode, saveAsNewNode, saveFileDlgOK, validateNewURL
 
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

RenameCommand

public RenameCommand()
Constructor.
Method Detail

doit

public int doit()
         throws java.lang.Exception
Rename the selected element
Overrides:
doit in class SaveAsCommand

saveDocument

protected int saveDocument(Document doc)
Overrides:
saveDocument in class SaveAsCommand

Extension SDK