Skip navigation links
oracle.ide.cmd
Class RestoreHistoryRenameCommand
java.lang.Object
oracle.ide.controller.Command
oracle.ide.cmd.SaveAsCommand
oracle.ide.cmd.RenameCommand
oracle.ide.cmd.RestoreHistoryRenameCommand
- All Implemented Interfaces:
- HistoryGeneratingCommand
-
public class RestoreHistoryRenameCommand
- extends RenameCommand
- implements HistoryGeneratingCommand
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestoreHistoryRenameCommand
public RestoreHistoryRenameCommand()
getName
public java.lang.String getName()
- Description copied from class:
Command
- Gets the name of the command to display as the action to undo
-
- Specified by:
getName
in interface HistoryGeneratingCommand
- Overrides:
getName
in class Command
doit
public int doit()
throws java.lang.Exception
- Description copied from class:
RenameCommand
- Rename the selected element
-
- Overrides:
doit
in class RenameCommand
-
- Throws:
java.lang.Exception
getHistoriedNodes
public Node[] getHistoriedNodes()
- Description copied from interface:
HistoryGeneratingCommand
- Get an array of Node whose state should be persisted.
-
- Specified by:
getHistoriedNodes
in interface HistoryGeneratingCommand
-
- Returns:
- an array of Node.
isGeneratePrecedingState
public boolean isGeneratePrecedingState()
- Description copied from interface:
HistoryGeneratingCommand
- 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.
Generally 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.
-
- Specified by:
isGeneratePrecedingState
in interface HistoryGeneratingCommand
-
- Returns:
- true if the preceding state should also be generated.
saveFileDlgOK
protected boolean saveFileDlgOK(Context context,
Node doc,
java.lang.String dialogTitle)
-
- Overrides:
saveFileDlgOK
in class SaveAsCommand
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.