| 
 | 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.Objectoracle.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 UpdateMessagewhose ID isUpdateMessage.CHILD_REMOVEDand 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 elementfromowner. | 
|  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 RemoveFileCommandjava.lang.Exception
protected boolean remove(Node node,
                         Folder owner)
RemoveFileCommandelement from owner.
remove in class RemoveFileCommandfalse if the element could not be removed.protected UpdateMessage createUpdateMessage()
RemoveFileCommandUpdateMessage whose ID is 
 UpdateMessage.CHILD_REMOVED and stores the 
 command ID as a user property.
createUpdateMessage in class RemoveFileCommandUpdateMessage whose ID is 
 UpdateMessage.CHILD_REMOVED.UpdateMessage.CHILD_REMOVEDprotected boolean isNeedConfirmClose()
isNeedConfirmClose in class RemoveFileCommandtrue 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 | |||||||||