Extension SDK

oracle.ide.cmd
Class RenameCommand

java.lang.Object
  extended byoracle.ide.addin.AbstractCommand
      extended byoracle.ide.cmd.SaveAsCommand
          extended byoracle.ide.cmd.RenameCommand
All Implemented Interfaces:
Command

public class RenameCommand
extends SaveAsCommand

The RenameCommand class implements the Rename command.

See Also:
oracle.ide.Command

Field Summary
 
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

Specified by:
doit in interface Command
Overrides:
doit in class SaveAsCommand
Throws:
java.lang.Exception

saveDocument

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

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.