public final class ContextMenuListenersHook extends HashStructureHook
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
ContextMenuListenersHook.MyListener |
ExtensionHook.URIResourceElementVisitor.ResourceBundleProvider| Modifier and Type | Field and Description |
|---|---|
static ElementName |
ELEMENT
The XML element for this custom hook.
|
protected static java.util.logging.Logger |
LOGGER |
ATTRIBUTE_RSBUNDLE_CLASS, KEY_EXTENSION, KEY_RSBUNDLE_CLASS, MANIFEST_XMLNSKEY_LOCATOR| Modifier and Type | Method and Description |
|---|---|
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.
|
addHashStructureHookListener, dispose, end, getExtensionId, getHashStructure, getListenersCount, getOrderedElements, getText, removeHashStructureHookListener, startfindPath, getExtension, getProvider, getRSBundleClass, getSchemaLocation, resolvePath, setProvider, setSchemaLocationgetAttributeHelper, getClassLoader, getMetaClassLoader, getResourceBundle, getResourceBundleProvider, getTextHelper, log, log, setResourceBundleProviderpublic static final ElementName ELEMENT
protected static final java.util.logging.Logger LOGGER
public ContextMenuListener getListener(java.lang.String siteId)
siteId - the id of a context menu listener site.
public void addListenerForSite(java.lang.String siteId,
MetaClass listenerClass)
siteId -listenerClass -