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.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 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

registerDeleteActionHandler

public static void registerDeleteActionHandler(java.lang.Class<? extends Element> 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 Element> 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.

registerLookupHelper

public static void registerLookupHelper(DeleteActionHandler.LookupHelper lookupHelper)
Registers a lookup helper. When deciding which delete handler to pick, all client lookup helpers are consulted. If none are handling it, the default lookup helper will be called, which simply goes by the current selection and finds the best match it can find for the selection.
Parameters:
lookupHelper -

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.