Dynamically refresh a plugin [message #321572] |
Sat, 20 October 2007 14:10  |
Eclipse User |
|
|
|
Hi,
I have a plugin which gets installed with a missing dependent library.
When the Activator class of the plugin gets called, the dependent
library gets downloaded, but the plugin cannot recognize or link to the
downloaded library, until eclipse is restarted.
Is there a way, that the plugin can link to the downloaded library,
after the Activator class is called without restarting eclipse. The
download call is made in the start() function of the Activator class.
Regards
Samrat Dhillon
|
|
|
|
Re: Dynamically refresh a plugin [message #321622 is a reply to message #321593] |
Tue, 23 October 2007 01:45  |
Eclipse User |
|
|
|
Paul Webster wrote:
> Is your dependent library a jar file? If so you can ask OSGi to refresh
> the packages that you "export". Check out
> org.eclipse.ui.tests.dynamicplugins.TestInstallUtil in
> org.eclipse.ui.tests to see how to request an OSGi package refresh. You
> must have it in your bundle classpath header in such a way that it can
> be found, though.
>
> If it's a native lib, then just having it on the java.library.path
> should be enough, no?
>
> PW
>
Thanks for the help.
It worked.
Regards
Samrat Dhillon
|
|
|
Powered by
FUDForum. Page generated in 0.03839 seconds