public class BaseExtensionPointHandle extends Handle implements IExtensionPoint
objectManager| Constructor and Description |
|---|
BaseExtensionPointHandle(IObjectManager objectManager,
int id) |
| Modifier and Type | Method and Description |
|---|---|
IConfigurationElement[] |
getConfigurationElements()
Returns all configuration elements from all extensions configured
into this extension point.
|
IContributor |
getContributor()
Returns the contributor of this extension point.
|
IExtension |
getExtension(java.lang.String extensionId)
Returns the extension with the given unique identifier configured into
this extension point, or
null if there is no such extension. |
protected ExtensionPoint |
getExtensionPoint() |
IExtension[] |
getExtensions()
Returns all extensions configured into this extension point.
|
java.lang.String |
getLabel()
Returns a displayable label for this extension point.
|
java.lang.String |
getLabel(java.lang.String locale)
When multi-language support is enabled, this method returns a displayable label
for this extension point in the specified locale.
|
java.lang.String |
getLabelAsIs() |
java.lang.String |
getNamespace()
Returns the namespace for this extension point.
|
java.lang.String |
getNamespaceIdentifier()
Returns the namespace name for this extension point.
|
java.lang.String |
getSchemaReference()
Returns reference to the extension point schema.
|
java.lang.String |
getSimpleIdentifier()
Returns the simple identifier of this extension point.
|
java.lang.String |
getUniqueIdentifier()
Returns the unique identifier of this extension point.
|
boolean |
isValid()
Returns whether this extension point object is valid.
|
protected boolean |
shouldPersist() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequalspublic BaseExtensionPointHandle(IObjectManager objectManager, int id)
public IExtension[] getExtensions()
IExtensionPointgetExtensions in interface IExtensionPointpublic java.lang.String getNamespace()
IExtensionPointgetNamespace in interface IExtensionPointIExtensionRegistrypublic java.lang.String getNamespaceIdentifier()
IExtensionPointgetNamespaceIdentifier in interface IExtensionPointpublic IContributor getContributor()
IExtensionPointgetContributor in interface IExtensionPointprotected boolean shouldPersist()
public IExtension getExtension(java.lang.String extensionId)
IExtensionPointnull if there is no such extension.
Since an extension might not have an identifier, some extensions
can only be found via the getExtensions method.getExtension in interface IExtensionPointextensionId - the unique identifier of an extension
(e.g. "com.example.acme.main").nullpublic IConfigurationElement[] getConfigurationElements()
IExtensionPointgetConfigurationElements in interface IExtensionPointpublic java.lang.String getLabelAsIs()
public java.lang.String getLabel()
IExtensionPointNote that any translation specified in the plug-in manifest file is automatically applied.
getLabel in interface IExtensionPointpublic java.lang.String getLabel(java.lang.String locale)
IExtensionPointThe locale matching tries to find the best match between available translations and the requested locale, falling back to a more generic locale ("en") when the specific locale ("en_US") is not available.
If multi-language support is not enabled, this method is equivalent to the method
IExtensionPoint.getLabel().
getLabel in interface IExtensionPointlocale - the requested localeIExtensionRegistry.isMultiLanguage()public java.lang.String getSchemaReference()
IExtensionPointgetSchemaReference in interface IExtensionPointpublic java.lang.String getSimpleIdentifier()
IExtensionPoint'.') and is guaranteed
to be unique within the namespace.getSimpleIdentifier in interface IExtensionPoint"builders")public java.lang.String getUniqueIdentifier()
IExtensionPointgetUniqueIdentifier in interface IExtensionPoint"org.eclipse.core.resources.builders")protected ExtensionPoint getExtensionPoint()
public boolean isValid()
IExtensionPointisValid in interface IExtensionPointtrue if the object is valid, and false
if it is no longer valid