Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Dynamically refresh a plugin
Dynamically refresh a plugin [message #321572] Sat, 20 October 2007 14:10 Go to next message
Eclipse UserFriend
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 #321593 is a reply to message #321572] Mon, 22 October 2007 08:22 Go to previous messageGo to next message
Eclipse UserFriend
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

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Re: Dynamically refresh a plugin [message #321622 is a reply to message #321593] Tue, 23 October 2007 01:45 Go to previous message
Eclipse UserFriend
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
Previous Topic:[Databinding] Tracking different selections in MasterDetail binding
Next Topic:How to decorate a ViewerColumn ?
Goto Forum:
  


Current Time: Sun Jul 27 09:01:44 EDT 2025

Powered by FUDForum. Page generated in 0.03715 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top