Methods in
org.eclipse.core.runtime that throw
InvalidRegistryObjectException
|
String
|
IConfigurationElement.
getAttribute
(
String name)
Returns the named attribute of this configuration element, or
null if none. |
String
|
IConfigurationElement.
getAttributeAsIs
(
String name)
Deprecated. The method is equivalent to the
IConfigurationElement.getAttribute(String) . Contrary to its description,
this method returns a translated value. Use the
IConfigurationElement.getAttribute(String) method instead.
|
String[]
|
IConfigurationElement.
getAttributeNames
()
Returns the names of the attributes of this configuration element. |
IConfigurationElement[]
|
IConfigurationElement.
getChildren
()
Returns all configuration elements that are children of this
configuration element. |
IConfigurationElement[]
|
IConfigurationElement.
getChildren
(
String name)
Returns all child configuration elements with the given name. |
IConfigurationElement[]
|
IExtension.
getConfigurationElements
()
Returns all configuration elements declared by this extension. |
IConfigurationElement[]
|
IExtensionPoint.
getConfigurationElements
()
Returns all configuration elements from all extensions configured
into this extension point. |
IContributor
|
IConfigurationElement.
getContributor
()
Returns the contributor of this configuration element. |
IContributor
|
IExtension.
getContributor
()
Returns the contributor of this extension. |
IContributor
|
IExtensionPoint.
getContributor
()
Returns the contributor of this extension point. |
IExtension
|
IConfigurationElement.
getDeclaringExtension
()
Returns the extension that declares this configuration element. |
IExtension
|
IExtensionPoint.
getExtension
(
String extensionId)
Returns the extension with the given unique identifier configured into
this extension point, or null if there is no such extension. |
String
|
IExtension.
getExtensionPointUniqueIdentifier
()
Returns the unique identifier of the extension point
to which this extension should be contributed. |
IExtension[]
|
IExtensionPoint.
getExtensions
()
Returns all extensions configured into this extension point. |
String
|
IExtension.
getLabel
()
Returns a displayable label for this extension. |
String
|
IExtensionPoint.
getLabel
()
Returns a displayable label for this extension point. |
String
|
IConfigurationElement.
getName
()
Returns the name of this configuration element. |
String
|
IConfigurationElement.
getNamespace
()
Deprecated. As namespace is no longer restricted to the contributor name,
use
IConfigurationElement.getNamespaceIdentifier() to obtain namespace name or
IConfigurationElement.getContributor()
to get the name of the contributor of this registry element.
In the past namespace was dictated by the name of the bundle. If bundle org.abc
contributed registry element with Id of MyId , the namespace of
the element was always set to org.abc , producing the qualified name of
org.abc.MyId .
The namespace used to be the same as the bundle name. As a result, the
IConfigurationElement.getNamespace()
method was used both to obtain the name of the bundle and to obtain the namespace of a registry
element.
Since 3.2, the extension registry allows elements to specify qualified name. The extension point
of the plug-in org.abc could specify org.zzz.MyExtPoint as
an Id. In this case, namespace name is org.zzz , but the contributor
name is org.abc .
(The use of a simple Id is still a preferred way. Whenever possible, specify only the simple
Id and let runtime take care of the rest.)
If your code used the
IConfigurationElement.getNamespace() to obtain the name of the contributing bundle,
use
IConfigurationElement.getContributor() . The typical usage pattern here is to find a bundle name to obtain
some information from the corresponding OSGi bundle. For example, deducing the file location
specified as a relative path to the bundle install location would fall into this group.
If your code used the
IConfigurationElement.getNamespace() to obtain the namespace of the registry element,
use
IConfigurationElement.getNamespaceIdentifier() . Typically, this is the case when code is trying to process
registry elements belonging to some logical group. For example, processing notifications for all
elements belonging to the org.abc namespace would fall into this category.
|
String
|
IExtension.
getNamespace
()
Deprecated. As namespace is no longer restricted to the contributor name,
use
IExtension.getNamespaceIdentifier() to obtain namespace name or
IExtension.getContributor()
to get the name of the contributor of this registry element.
In the past namespace was dictated by the name of the bundle. If bundle org.abc
contributed registry element with Id of MyId , the namespace of
the element was always set to org.abc , producing the qualified name of
org.abc.MyId .
The namespace used to be the same as the bundle name. As a result, the
IExtension.getNamespace()
method was used both to obtain the name of the bundle and to obtain the namespace of a registry
element.
Since 3.2, the extension registry allows elements to specify qualified name. The extension point
of the plug-in org.abc could specify org.zzz.MyExtPoint as
an Id. In this case, namespace name is org.zzz , but the contributor
name is org.abc .
(The use of a simple Id is still a preferred way. Whenever possible, specify only the simple
Id and let runtime take care of the rest.)
If your code used the
IExtension.getNamespace() to obtain the name of the contributing bundle,
use
IExtension.getContributor() . The typical usage pattern here is to find a bundle name to obtain
some information from the corresponding OSGi bundle. For example, deducing the file location
specified as a relative path to the bundle install location would fall into this group.
If your code used the
IExtension.getNamespace() to obtain the namespace of the registry element,
use
IExtension.getNamespaceIdentifier() . Typically, this is the case when code is trying to process
registry elements belonging to some logical group. For example, processing notifications for all
elements belonging to the org.abc namespace would fall into this category.
|
String
|
IExtensionPoint.
getNamespace
()
Deprecated. As namespace is no longer restricted to the contributor name,
use
IExtensionPoint.getNamespaceIdentifier() to obtain namespace name or
IExtensionPoint.getContributor()
to get the name of the contributor of this registry element.
In the past namespace was dictated by the name of the bundle. If bundle org.abc
contributed registry element with Id of MyId , the namespace of
the element was always set to org.abc , producing the qualified name of
org.abc.MyId .
The namespace used to be the same as the bundle name. As a result, the
IExtensionPoint.getNamespace()
method was used both to obtain the name of the bundle and to obtain the namespace of a registry
element.
Since 3.2, the extension registry allows elements to specify qualified name. The extension point
of the plug-in org.abc could specify org.zzz.MyExtPoint as
an Id. In this case, namespace name is org.zzz , but the contributor
name is org.abc .
(The use of a simple Id is still a preferred way. Whenever possible, specify only the simple
Id and let runtime take care of the rest.)
If your code used the
IExtensionPoint.getNamespace() to obtain the name of the contributing bundle,
use
IExtensionPoint.getContributor() . The typical usage pattern here is to find a bundle name to obtain
some information from the corresponding OSGi bundle. For example, deducing the file location
specified as a relative path to the bundle install location would fall into this group.
If your code used the
IExtensionPoint.getNamespace() to obtain the namespace of the registry element,
use
IExtensionPoint.getNamespaceIdentifier() . Typically, this is the case when code is trying to process
registry elements belonging to some logical group. For example, processing notifications for all
elements belonging to the org.abc namespace would fall into this category.
|
String
|
IConfigurationElement.
getNamespaceIdentifier
()
Returns the namespace name for this configuration element. |
String
|
IExtension.
getNamespaceIdentifier
()
Returns the namespace name for this extension. |
String
|
IExtensionPoint.
getNamespaceIdentifier
()
Returns the namespace name for this extension point. |
Object
|
IConfigurationElement.
getParent
()
Returns the element which contains this element. |
String
|
IExtensionPoint.
getSchemaReference
()
Returns reference to the extension point schema. |
String
|
IExtension.
getSimpleIdentifier
()
Returns the simple identifier of this extension, or null
if this extension does not have an identifier. |
String
|
IExtensionPoint.
getSimpleIdentifier
()
Returns the simple identifier of this extension point. |
String
|
IExtension.
getUniqueIdentifier
()
Returns the unique identifier of this extension, or null
if this extension does not have an identifier. |
String
|
IExtensionPoint.
getUniqueIdentifier
()
Returns the unique identifier of this extension point. |
String
|
IConfigurationElement.
getValue
()
Returns the text value of this configuration element. |
String
|
IConfigurationElement.
getValueAsIs
()
Deprecated. The method is equivalent to the
IConfigurationElement.getValue() . Contrary to its description,
this method returns a translated value. Use the
IConfigurationElement.getValue() method instead.
|