Defining an extension point in a RAP app and using it [message #118781] |
Mon, 19 January 2009 13:52  |
Eclipse User |
|
|
|
Originally posted by: spanprevention-nursubscriptions.gmail.com
Hi All,
A newbie question related to extension points. I have a RAP application
(in plugin P1). It provides an extension point, say ExP1. There is a
plugin P2 that provides an extention for extension point ExP1. P2's
MANIFEST.MF refers to P1 in its "Require-Bundle" key to implement an
interface exported by P1 towards fulfillment of extension point contract.
P1 itself has no dependency on P2. Both P1 and P2 are open projects in the
workbench. When the RAP app (i.e. P1) is run through Eclipse, no
extensions are found for the extension point ExP1.
Following is the code used in P1:
IExtensionRegistry registry = Platform.getExtensionRegistry();
IExtensionPoint point = registry.getExtensionPoint("ID of ExP1");
if (point != null) {
IExtension[] extensions = point.getExtensions();
// the extensions array obtained above is empty
}
I had expected the extension contributed by P2 to be found, but that
wasn't the case. I believe i am missing something rather basic here. Any
pointers on how to obtain the extension contributed by P2 would be greatly
appreciated.
TIA,
Best Regards,
- Abhi
|
|
|
|
|
Re: Defining an extension point in a RAP app and using it [message #126953 is a reply to message #118874] |
Thu, 02 April 2009 18:25  |
Eclipse User |
|
|
|
Hi Abhi,
I am not sure if this is the right place. But I was browsing for
"Enable/Disable Plugin versions dynamically " and found you posted asking
for the same.
I am looking for exactly same info on a scenario where I need to enable
one version of the plugin and on other scenarios other versions of the
same plugin needs enabled. Could you share your findings on this topic....
thanks,
nitha
|
|
|
Powered by
FUDForum. Page generated in 0.06827 seconds