|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.controller.Command oracle.ide.cmd.RemoveFileCommand oracle.ide.cmd.RemoveFromDiskCommand
public class RemoveFromDiskCommand
The RemoveFileCommand
class implements the command to delete
the file(s) on disk that are associated with the selected element(s).
Command
,
Command
Field Summary |
---|
Fields inherited from class oracle.ide.controller.Command |
---|
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type |
Constructor Summary | |
---|---|
RemoveFromDiskCommand()
Constructor. |
Method Summary | |
---|---|
protected UpdateMessage |
createUpdateMessage()
Creates an UpdateMessage whose ID is
UpdateMessage.CHILD_REMOVED and stores the
command ID as a user property. |
int |
doit()
Presents the user with the selected list of element files to delete from disk using SelectFilesPanel.showDialog(). |
protected boolean |
isNeedConfirmClose()
Override default behavior to suppress the 'Save Files' dialog when files are about to be removed from disk. |
protected boolean |
remove(Node node,
Folder owner)
Removes element from owner . |
void |
setSilently(boolean silently)
|
Methods inherited from class oracle.ide.cmd.RemoveFileCommand |
---|
buildFileNamesString, canRemove, canRemove, getAffectedNodes, remove, remove |
Methods inherited from class oracle.ide.controller.Command |
---|
getContext, getData, getId, getName, 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 RemoveFromDiskCommand()
Method Detail |
---|
public void setSilently(boolean silently)
public int doit() throws java.lang.Exception
doit
in class RemoveFileCommand
java.lang.Exception
protected boolean remove(Node node, Folder owner)
RemoveFileCommand
element
from owner
.
remove
in class RemoveFileCommand
false
if the element could not be removed.protected UpdateMessage createUpdateMessage()
RemoveFileCommand
UpdateMessage
whose ID is
UpdateMessage.CHILD_REMOVED
and stores the
command ID as a user property.
createUpdateMessage
in class RemoveFileCommand
UpdateMessage
whose ID is
UpdateMessage.CHILD_REMOVED
.UpdateMessage.CHILD_REMOVED
protected boolean isNeedConfirmClose()
isNeedConfirmClose
in class RemoveFileCommand
true
if the user should be prompted to save
dirty nodes prior to removing them. This allows suppression of
the 'Save Files' dialog when the files are about to be removed
from disk altogether.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |