| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.controller.Command
oracle.ide.cmd.SaveAsCommand
oracle.ide.cmd.RenameCommand
oracle.ide.cmd.RestoreHistoryRenameCommand
public class RestoreHistoryRenameCommand
| Field Summary | 
|---|
| Fields inherited from class oracle.ide.cmd.SaveAsCommand | 
|---|
_context, _duplicate, _elementOwner, _newURL, _nodeClass, _noPlaceToAdd, _sourceContentSet, CANCELED, OK_NAME_CHANGED, OK_NAME_UNCHANGED | 
| Fields inherited from class oracle.ide.controller.Command | 
|---|
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type | 
| Constructor Summary | |
|---|---|
RestoreHistoryRenameCommand()
 | 
|
| Method Summary | |
|---|---|
 int | 
doit()
Rename the selected element  | 
 Node[] | 
getHistoriedNodes()
Get an array of Node whose state should be persisted.  | 
 java.lang.String | 
getName()
Gets the name of the command to display as the action to undo  | 
 boolean | 
isGeneratePrecedingState()
Determine whether or not the state preceding the invokation of the Command should also be generated if a historied Node is found to be dirty.  | 
protected  boolean | 
saveFileDlgOK(Context context,
              Node doc,
              java.lang.String dialogTitle)
 | 
| Methods inherited from class oracle.ide.cmd.RenameCommand | 
|---|
handleNodeOwnership, isSameFile, saveAsDupNode, saveAsNewNode, saveNode, validateNewURL | 
| Methods inherited from class oracle.ide.cmd.SaveAsCommand | 
|---|
approveNewURL, convertToDupNode, convertToNewNode, doSaveAs, getOwningContentSet | 
| Methods inherited from class oracle.ide.controller.Command | 
|---|
getAffectedNodes, getContext, getData, getId, getType, isGlobal, setContext, setData, undo | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RestoreHistoryRenameCommand()
| Method Detail | 
|---|
public java.lang.String getName()
Command
getName in interface HistoryGeneratingCommandgetName in class Command
public int doit()
         throws java.lang.Exception
RenameCommand
doit in class RenameCommandjava.lang.Exceptionpublic Node[] getHistoriedNodes()
HistoryGeneratingCommand
getHistoriedNodes in interface HistoryGeneratingCommandpublic boolean isGeneratePrecedingState()
HistoryGeneratingCommandGenerally speaking, implementations should not have to exercise any conditions; Either a preceding state should always be generated (e.g. a refactoring Command), or never generated (e.g. a Save command). The result of this method will only be considered if a historied Node was first found to be dirty before the invokation of the Command.
Commands of type MULTI_DOCUMENT are always treated as HistoryGeneratingCommands and thus need not implement this interface.
isGeneratePrecedingState in interface HistoryGeneratingCommand
protected boolean saveFileDlgOK(Context context,
                                Node doc,
                                java.lang.String dialogTitle)
saveFileDlgOK in class SaveAsCommand
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||