Jobs and unloading of plugins [message #325631] |
Sat, 23 February 2008 18:14 |
Eclipse User |
|
|
|
Hi
I have a question about jobs/threads and unloading of plugins. I search
various newsgroups and could not find any reference docs.
Let us assume that pluginA depends on pluginB. I have a job/thread which
is running some code in pluginA which may call some code in pluginB. When
the Eclipse workbench is shutting down, I am assuming that both these
plugins will not be unloaded till this job is done. But what I am finding
is that it is not true. Many times my job will get a null pointer
exception when running code in pluginB which looks like:
PluginBActivator.getDefault().dosomething. Basically, stop() on pluginB
has been called - but the job is still running and can access these
methods in pluginB.
Is there something I am missing? Any guidelines regarding jobs and eclipse
osgi shutdown or any whitepaper reference will be greatly appreciated.
Thanks
Pawan
|
|
|
Powered by
FUDForum. Page generated in 0.05899 seconds