public class BaseExtensionHandle extends Handle implements IExtension
objectManager| Constructor and Description |
|---|
BaseExtensionHandle(IObjectManager objectManager,
int id) |
| Modifier and Type | Method and Description |
|---|---|
IConfigurationElement[] |
getConfigurationElements()
Returns all configuration elements declared by this extension.
|
IContributor |
getContributor()
Returns the contributor of this extension.
|
protected Extension |
getExtension() |
java.lang.String |
getExtensionPointUniqueIdentifier()
Returns the unique identifier of the extension point
to which this extension should be contributed.
|
java.lang.String |
getLabel()
Returns a displayable label for this extension.
|
java.lang.String |
getLabel(java.lang.String locale)
When multi-language support is enabled, this method returns a displayable label for this
extension in the specified locale.
|
java.lang.String |
getLabelAsIs() |
java.lang.String |
getNamespace()
Returns the namespace for this extension.
|
java.lang.String |
getNamespaceIdentifier()
Returns the namespace name for this extension.
|
java.lang.String |
getSimpleIdentifier()
Returns the simple identifier of this extension, or
null
if this extension does not have an identifier. |
java.lang.String |
getUniqueIdentifier()
Returns the unique identifier of this extension, or
null
if this extension does not have an identifier. |
boolean |
isValid()
Returns whether this extension object is valid.
|
protected boolean |
shouldPersist() |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequalspublic BaseExtensionHandle(IObjectManager objectManager, int id)
protected Extension getExtension()
protected boolean shouldPersist()
public java.lang.String getNamespace()
IExtensiongetNamespace in interface IExtensionIExtensionRegistrypublic java.lang.String getNamespaceIdentifier()
IExtensiongetNamespaceIdentifier in interface IExtensionpublic IContributor getContributor()
IExtensiongetContributor in interface IExtensionpublic java.lang.String getExtensionPointUniqueIdentifier()
IExtensiongetExtensionPointUniqueIdentifier in interface IExtensionpublic java.lang.String getLabel()
IExtensionNote that any translation specified in the plug-in manifest file is automatically applied.
getLabel in interface IExtensionpublic java.lang.String getLabelAsIs()
public java.lang.String getLabel(java.lang.String locale)
IExtensionThe 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
IExtension.getLabel().
getLabel in interface IExtensionlocale - the requested localeIExtensionRegistry.isMultiLanguage()public java.lang.String getSimpleIdentifier()
IExtensionnull
if this extension does not have an identifier.
This identifier is specified in the plug-in manifest (plugin.xml)
file as a non-empty string containing no period characters
('.') and must be unique within the namespace.getSimpleIdentifier in interface IExtension"main")
or nullpublic java.lang.String getUniqueIdentifier()
IExtensionnull
if this extension does not have an identifier.
If available, this identifier is unique within the plug-in registry, and
is composed of the namespace where this extension
was declared and this extension's simple identifier.getUniqueIdentifier in interface IExtension"com.example.acme.main"), or nullpublic IConfigurationElement[] getConfigurationElements()
IExtensionplugin.xml)
file for the plug-in that declares this extension.
Returns an empty array if this extension does not declare any
configuration elements.getConfigurationElements in interface IExtensionpublic boolean isValid()
IExtensionisValid in interface IExtensiontrue if the object is valid, and false
if it is no longer valid