public interface IExtensionRegistry
IExtensionRegistry
interface.
The extension registry holds the master list of all discovered namespaces, extension points and extensions.
The extension registry can be queried, by name, for extension points and extensions.
Extensions and extension points are declared by generic entities called namespaces. The only fact known about namespaces is that they have unique string-based identifiers. One example of a namespace is a plug-in, for which the namespace id is the plug-in id.
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
IConfigurationElement[] |
getConfigurationElementsFor(java.lang.String extensionPointId)
Returns all configuration elements from all extensions configured
into the identified extension point.
|
IConfigurationElement[] |
getConfigurationElementsFor(java.lang.String namespace,
java.lang.String extensionPointName)
Returns all configuration elements from all extensions configured
into the identified extension point.
|
IConfigurationElement[] |
getConfigurationElementsFor(java.lang.String namespace,
java.lang.String extensionPointName,
java.lang.String extensionId)
Returns all configuration elements from the identified extension.
|
IExtension |
getExtension(java.lang.String extensionId)
Returns the specified extension in this extension registry,
or
null if there is no such extension. |
IExtension |
getExtension(java.lang.String extensionPointId,
java.lang.String extensionId)
Returns the specified extension in this extension registry,
or
null if there is no such extension. |
IExtension |
getExtension(java.lang.String namespace,
java.lang.String extensionPointName,
java.lang.String extensionId)
Returns the specified extension in this extension registry,
or
null if there is no such extension. |
IExtensionPoint |
getExtensionPoint(java.lang.String extensionPointId)
Returns the extension point with the given extension point identifier
in this extension registry, or
null if there is no such
extension point. |
IExtensionPoint |
getExtensionPoint(java.lang.String namespace,
java.lang.String extensionPointName)
Returns the extension point in this extension registry
with the given namespace and extension point simple identifier,
or
null if there is no such extension point. |
IExtensionPoint[] |
getExtensionPoints()
Returns all extension points known to this extension registry.
|
IExtensionPoint[] |
getExtensionPoints(java.lang.String namespace)
Returns all extension points declared in the given namespace.
|
IExtension[] |
getExtensions(java.lang.String namespace)
Returns all extensions declared in the given namespace.
|
java.lang.String[] |
getNamespaces()
Returns all namespaces where extensions and/or extension points.
|
IConfigurationElement[] getConfigurationElementsFor(java.lang.String extensionPointId)
extensionPointId
- the unique identifier of the extension point
(e.g. "org.eclipse.core.resources.builders"
)IConfigurationElement[] getConfigurationElementsFor(java.lang.String namespace, java.lang.String extensionPointName)
namespace
- the namespace for the extension point
(e.g. "org.eclipse.core.resources"
)extensionPointName
- the simple identifier of the
extension point (e.g. "builders"
)IConfigurationElement[] getConfigurationElementsFor(java.lang.String namespace, java.lang.String extensionPointName, java.lang.String extensionId)
namespace
- the namespace for the extension point
(e.g. "org.eclipse.core.resources"
)extensionPointName
- the simple identifier of the
extension point (e.g. "builders"
)extensionId
- the unique identifier of the extension
(e.g. "com.example.acme.coolbuilder
)IExtension getExtension(java.lang.String extensionId)
null
if there is no such extension.extensionId
- the unique identifier of the extension
(e.g. "com.example.acme.coolbuilder"
)null
IExtension getExtension(java.lang.String extensionPointId, java.lang.String extensionId)
null
if there is no such extension.
The first parameter identifies the extension point, and the second
parameter identifies an extension plugged in to that extension point.extensionPointId
- the unique identifier of the extension point
(e.g. "org.eclipse.core.resources.builders"
)extensionId
- the unique identifier of the extension
(e.g. "com.example.acme.coolbuilder"
)null
IExtension getExtension(java.lang.String namespace, java.lang.String extensionPointName, java.lang.String extensionId)
null
if there is no such extension.
The first two parameters identify the extension point, and the third
parameter identifies an extension plugged in to that extension point.namespace
- the namespace for the extension point
(e.g. "org.eclipse.core.resources"
)extensionPointName
- the simple identifier of the
extension point (e.g. "builders"
)extensionId
- the unique identifier of the extension
(e.g. "com.example.acme.coolbuilder"
)null
IExtensionPoint getExtensionPoint(java.lang.String extensionPointId)
null
if there is no such
extension point.extensionPointId
- the unique identifier of the extension point
(e.g., "org.eclipse.core.resources.builders"
)null
IExtensionPoint getExtensionPoint(java.lang.String namespace, java.lang.String extensionPointName)
null
if there is no such extension point.namespace
- the namespace for the given extension point
(e.g. "org.eclipse.core.resources"
)extensionPointName
- the simple identifier of the
extension point (e.g. " builders"
)null
IExtensionPoint[] getExtensionPoints()
IExtensionPoint[] getExtensionPoints(java.lang.String namespace)
namespace
- the namespace for the extension points
(e.g. "org.eclipse.core.resources"
)IExtension[] getExtensions(java.lang.String namespace)
namespace
- the namespace for the extensions
(e.g. "org.eclipse.core.resources"
)java.lang.String[] getNamespaces()
Copyright © 2008 OpenText Corp. All rights reserved.