Defining an extension point in a RAP app and using it [message #118781] |
Mon, 19 January 2009 18: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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04001 seconds