Optional dependency [message #325649] |
Mon, 25 February 2008 10:01 |
Eclipse User |
|
|
|
Originally posted by: s.larsen.danskebank.dk
My situation is this:
I have made a very important plugin (X), which uses a very unimportant
(statistics) plugin (Y).
I want the X-plugin to work, even if Y-plugin is not present.
In X-plugin I have defined an optional dependency to Y-plugin.
The X-plugin is calling the Y-plugin in a seperate thread.
This actually works - but not very nice.
If the Y-plugin is not available I get this error from org.eclipse.ui:
Failed to execute runnable (java.lang.NoClassDefFoundError: Y-plugin)
and the thread is terminated.
So... my question is:
How can I from X-plugin, check if Y-plugin is available, so that I handle
it and omit trying to instantiate Y-plugin?
Regards
Steen Larsen
|
|
|
|
Powered by
FUDForum. Page generated in 0.02969 seconds