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

E17493-02

oracle.ide.controller
Class ContextMenuListenersHook

java.lang.Object
  extended by javax.ide.extension.ElementVisitor
      extended by javax.ide.extension.ExtensionHook
          extended by oracle.ide.extension.HashStructureHook
              extended by oracle.ide.controller.ContextMenuListenersHook

public final class ContextMenuListenersHook
extends HashStructureHook

Declarative hook for context menu listeners.

This class provides access to context menu listeners for a specific site registered in extension manifests. A single instance of ContextMenuListener is provided for a specific site which lazily creates and delegates to the specific implementations registered in extension manifests.

Obtain an instance of this class using ExtensionRegistry.getHook(javax.ide.extension.ElementName), providing ELEMENT as the ElementName parameter.

Since:
11.0

Nested Class Summary
static class ContextMenuListenersHook.MyListener
           
 
Nested classes/interfaces inherited from class javax.ide.extension.ExtensionHook
ExtensionHook.URIResource
 
Nested classes/interfaces inherited from class javax.ide.extension.ElementVisitor
ElementVisitor.ResourceBundleProvider
 
Field Summary
static ElementName ELEMENT
          The XML element for this custom hook.
protected static java.util.logging.Logger LOGGER
           
 
Fields inherited from class javax.ide.extension.ExtensionHook
KEY_EXTENSION, KEY_RSBUNDLE_CLASS, MANIFEST_XMLNS
 
Fields inherited from class javax.ide.extension.ElementVisitor
KEY_LOCATOR
 
Method Summary
 void addListenerForSite(java.lang.String siteId, MetaClass listenerClass)
          Allow contextMenuHook to add listeners to ContextMenuListenersHook.
 ContextMenuListener getListener(java.lang.String siteId)
          Returns the declarative context menu listener for the specified site.
 
Methods inherited from class oracle.ide.extension.HashStructureHook
addHashStructureHookListener, dispose, end, getExtensionId, getHashStructure, getOrderedElements, getText, removeHashStructureHookListener, start
 
Methods inherited from class javax.ide.extension.ExtensionHook
findPath, getExtension, getProvider, getRSBundleClass, getSchemaLocation, resolvePath, setProvider, setSchemaLocation
 
Methods inherited from class javax.ide.extension.ElementVisitor
getAttributeHelper, getClassLoader, getMetaClassLoader, getResourceBundle, getResourceBundleProvider, getTextHelper, log, log, setResourceBundleProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT

public static final ElementName ELEMENT
The XML element for this custom hook.


LOGGER

protected static final java.util.logging.Logger LOGGER
Method Detail

getListener

public ContextMenuListener getListener(java.lang.String siteId)
Returns the declarative context menu listener for the specified site. The returned ContextMenuListener will delegate to all registered listeners for the specified site.

Parameters:
siteId - the id of a context menu listener site.
Returns:
a context menu listener for the specified site.

addListenerForSite

public void addListenerForSite(java.lang.String siteId,
                               MetaClass listenerClass)
Allow contextMenuHook to add listeners to ContextMenuListenersHook.

Parameters:
siteId -
listenerClass -

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

E17493-02

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