Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.ide.navigator
Class DeleteHandlerService

java.lang.Object
  extended by oracle.ide.navigator.DeleteHandlerService

public final class DeleteHandlerService
extends java.lang.Object

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:

The way a subtype of Node is registered with the service is 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 Node> classKey, java.lang.Class<? extends DeleteActionHandler> deleteActionHandlerClass)
          Registers a DeleteActionHandler for all nodes of type classKey.
static java.lang.Class<? extends DeleteActionHandler> unregisterDeleteActionHandler(java.lang.Class<? extends Node> 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

registerDeleteActionHandler

public static void registerDeleteActionHandler(java.lang.Class<? extends Node> classKey,
                                               java.lang.Class<? extends DeleteActionHandler> deleteActionHandlerClass)
Registers a DeleteActionHandler for all nodes of type classKey.


unregisterDeleteActionHandler

public static java.lang.Class<? extends DeleteActionHandler> unregisterDeleteActionHandler(java.lang.Class<? extends Node> classKey)
Unregisters the delete handler.

Parameters:
classKey -
Returns:
the unregistered delete handler

createDeleteHandler

public static DeleteActionHandler createDeleteHandler(Context context)
Creates a delete action handler for the selection made in the given context. To determine what delete handler to return, this service uses the types returned from context.getSelection()

Parameters:
context - the context whose selection will be targeted when deleting
Returns:
the DeleteActionHandler corresponding to the nodes in selection.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

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