|
Re: Extension and Extension Points [message #1729842 is a reply to message #1729789] |
Tue, 19 April 2016 12:49 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
This is not a question about modeling. Note that you should run your
test code as an Equinox application, not a stand alone Java main if you
want the registry to be initialized property by the OSGi runtime.
On 19.04.2016 14:17, Yash Agarwal wrote:
>
>
>
> I have created an extension point in one plugin(say plugin 'X') and I
> have installed that plugin in a new workspace. In this new workspace,
> I have created a plugin project and I am trying to access the
> extension point through below code:
>
> 1.
>
> public class Tester {
>
> public static void main(String[] args) {
> IExtensionRegistry registry =Platform.getExtensionRegistry();
> registry.getExtensionPoint(extensionPointId);
> }
>
> }
>
>
>
>
> The problem here is the registry is null.
>
>
>
> I searched on the internet and found some other way of getting the
> registry. But the problem there was IExtensionPoint object was null.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02501 seconds