| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.navigator.DeleteHandlerService
public final class DeleteHandlerService
A service for registering DeleteActionHandlers for a specific subtype
 Node. Once a delete action handler is registered for
 a subtype of Node, the IDE will invoke the handler whenever a node of that
 type is to be deleted, using any of the possible gestures, once
 the node in the navigator and selecting Delete:
 
DeleteHandlerService.registerDeleteActionHandler(MyCompexNode.class, MyComplexNodeDeleteHandler.class);
 
 The way to manually invoke the delete handler for a node is to call
 DeleteHandlerService.createDeleteHandler(context)
 
 where the context has its selection set to an array of the node subtypes.
| Method Summary | |
|---|---|
static DeleteActionHandler | 
createDeleteHandler(Context context)
Creates a delete action handler for the selection made in the given context.  | 
static void | 
registerDeleteActionHandler(java.lang.Class<? extends Element> classKey,
                            java.lang.Class<? extends DeleteActionHandler> deleteActionHandlerClass)
Registers a DeleteActionHandler for all nodes of type classKey. | 
static void | 
registerLookupHelper(DeleteActionHandler.LookupHelper lookupHelper)
Registers a lookup helper.  | 
static java.lang.Class<? extends DeleteActionHandler> | 
unregisterDeleteActionHandler(java.lang.Class<? extends Element> classKey)
Unregisters the delete handler.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static void registerDeleteActionHandler(java.lang.Class<? extends Element> classKey,
                                               java.lang.Class<? extends DeleteActionHandler> deleteActionHandlerClass)
DeleteActionHandler for all nodes of type classKey.
public static java.lang.Class<? extends DeleteActionHandler> unregisterDeleteActionHandler(java.lang.Class<? extends Element> classKey)
classKey - 
public static DeleteActionHandler createDeleteHandler(Context context)
context.getSelection()
 
context - the context whose selection will be targeted when deleting
DeleteActionHandler corresponding to the nodes in selection.public static void registerLookupHelper(DeleteActionHandler.LookupHelper lookupHelper)
lookupHelper - 
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||