Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Extension points
Extension points [message #72043] Sat, 12 August 2006 01:22 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:HTTP JSP Bundle
Next Topic:Multiple instances of same bundle
Goto Forum:
  


Current Time: Fri Apr 26 02:46:30 GMT 2024

Powered by FUDForum. Page generated in 0.03381 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top