Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ide.cmd
Class DeleteTNodeCommand

java.lang.Object
  extended by oracle.ide.controller.Command
      extended by oracle.ide.cmd.DeleteTNodeCommand


public class DeleteTNodeCommand
extends Command

The DeleteTNodeCommand class implements the command to remove the the selected node(s) from their containing folder(s).

See Also:
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
  DeleteTNodeCommand()
          Constructor.
protected DeleteTNodeCommand(int cmdId, int type)
          Constructor.

 

Method Summary
 int doit()
          Iterates through the list of selected TNodes, and for each, removes the node from its containing folder.
 java.lang.String getName()
          Gets the name of the command to display as the action to undo
 int undo()
          Undo the deletions, adding the elements back to their containing folders

 

Methods inherited from class oracle.ide.controller.Command
enableConfirmation, getAffectedNodes, getContext, getData, getId, getType, isGlobal, setContext, setData

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DeleteTNodeCommand

public DeleteTNodeCommand()
Constructor.

DeleteTNodeCommand

protected DeleteTNodeCommand(int cmdId,
                             int type)
Constructor.

Method Detail

doit

public int doit()
         throws java.lang.Exception
Iterates through the list of selected TNodes, and for each, removes the node from its containing folder. Does not remove each node's file from disk. After the TNodes are deleted, selection is assigned to a TNode remaining on the tree. Preference is given to a sibling of the last deleted TNode; if no siblings remain, its closest remaining ancestor is selected instead.
Specified by:
doit in class Command
Throws:
java.lang.Exception

undo

public int undo()
         throws java.lang.Exception
Undo the deletions, adding the elements back to their containing folders
Overrides:
undo in class Command
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Gets the name of the command to display as the action to undo
Overrides:
getName in class Command
Returns:
the name of this command

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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