Extension SDK 10.1.2


oracle.ide.cmd
Class EditorSaveAsCommand

java.lang.Object
  extended byoracle.ide.addin.AbstractCommand
      extended byoracle.ide.cmd.SaveAsCommand
          extended byoracle.ide.cmd.EditorSaveAsCommand

All Implemented Interfaces:
Command

public class EditorSaveAsCommand
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, _noPlaceToAdd, 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
EditorSaveAsCommand()
Constructor.

Method Summary
protected int convertToDupNode(Document doc)
protected int convertToNewNode(Document doc)
Rename with node conversion.
protected int doSaveAs(java.lang.String dialogTitle)
protected int saveAsDupNode(Document doc)
There is already a node in the cache with the new url.
protected int saveAsNewNode(Document doc)
The specified doc is being saved as a different name in addition to the name it already has.

Methods inherited from class oracle.ide.cmd.SaveAsCommand
doit, getElementOwner, handleDocumentOwnership, isSameFile, saveDocument, 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

EditorSaveAsCommand

public EditorSaveAsCommand()
Constructor.

Method Detail

doSaveAs

protected int doSaveAs(java.lang.String dialogTitle)
Overrides:
doSaveAs in class SaveAsCommand

saveAsNewNode

protected int saveAsNewNode(Document doc)
Description copied from class: SaveAsCommand
The specified doc is being saved as a different name in addition to the name it already has. The doc class has not changed (that is an html document has not been renamed as a jsp document).
Overrides:
saveAsNewNode in class SaveAsCommand

convertToNewNode

protected int convertToNewNode(Document doc)
Description copied from class: SaveAsCommand
Rename with node conversion.
Overrides:
convertToNewNode in class SaveAsCommand

convertToDupNode

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

saveAsDupNode

protected int saveAsDupNode(Document doc)
Description copied from class: SaveAsCommand
There is already a node in the cache with the new url.
Overrides:
saveAsDupNode in class SaveAsCommand

Extension SDK


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