Extension points [message #72043] |
Sat, 12 August 2006 01:22 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: ksshams.gmail.com
Hello,
One of our bundles exposes an extension point called
MissionExtension. Other bundles in the platform/plugins folder
contribute to this extension point (They are also included in the
feature.xml). However, when I search for plugins
that are contributing to this extension point, I am unable to find any
extensions.
Here is how we are doing this (in a static block):
IExtensionRegistry registry = Platform.getExtensionRegistry();
IExtensionPoint extensionPoint =
registry.getExtensionPoint(MISSION_EXTENSIONS);
IConfigurationElement[] extensions =
extensionPoint.getConfigurationElements();
for (IConfigurationElement element : extensions) {
}
We get the extentionPoint, and we also get the configurationElements.
However, the array is empty. There are several bundles that contribute
to this extension point, but they are not found. When this code is
executed, the bundles I am interested in are in the "STARTING" mode. I
would sincerely appreciate any help regarding the matter. Thanks in advance.
Regards,
Khawaja Shams
|
|
|
Re: Extension points [message #72080 is a reply to message #72043] |
Sat, 12 August 2006 05:15 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: stepper.sympedia.de
Khawaja Shams schrieb:
> Hello,
> One of our bundles exposes an extension point called
> MissionExtension. Other bundles in the platform/plugins folder
> contribute to this extension point (They are also included in the
> feature.xml). However, when I search for plugins
> that are contributing to this extension point, I am unable to find any
> extensions.
>
>
> Here is how we are doing this (in a static block):
>
> IExtensionRegistry registry = Platform.getExtensionRegistry();
>
> IExtensionPoint extensionPoint =
> registry.getExtensionPoint(MISSION_EXTENSIONS);
Have you tried this:
IExtension[] extensions = extensionPoint.getExtensions();
With your code below you seem to query the markup of the point itself,
not the contributed extensions.
Cheers
/Eike
> IConfigurationElement[] extensions =
> extensionPoint.getConfigurationElements();
> for (IConfigurationElement element : extensions) {
> }
>
> We get the extentionPoint, and we also get the configurationElements.
> However, the array is empty. There are several bundles that contribute
> to this extension point, but they are not found. When this code is
> executed, the bundles I am interested in are in the "STARTING" mode.
> I would sincerely appreciate any help regarding the matter. Thanks in
> advance.
>
>
> Regards,
> Khawaja Shams
|
|
|
Powered by
FUDForum. Page generated in 0.03920 seconds