Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plugin reload at runtime
Plugin reload at runtime [message #251787] Fri, 11 June 2004 13:54 Go to next message
christoph schwitter is currently offline christoph schwitterFriend
Messages: 8
Registered: July 2009
Junior Member
Assume you have a plugin that is configurable in several ways. Some of
these configurations require that the code of the plugin is modified. Its
part of the plugins function to generate, compile and package the code
according to the configuration. Now it would be nice if the plugin could
automatically replace its jar file with the new version and use it.

Its similar to the features offered by the runtime-workspace, but I'd like
to have that for the "real" eclipse. I know I could generate the jar, end
eclipse, replace the jar, and restart eclipse. Then the plugin would be
loaded with the new code. What I want is exactly that, simply without
restarting eclipse.

Does anyone know whether this is possible, or how it is possible?

(I know that theoretically the code could be rewritten to fit every
configuration. Its not an option).

Thanks for help

Chris
Re: Plugin reload at runtime [message #252106 is a reply to message #251787] Sat, 12 June 2004 23:38 Go to previous message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

I'm not sure I fully understood your question (you got me confused with
the part on the runtime-workspace :-), but I'll try an answer.

At a low level (from a runtime aspect), it possible to totally unload a
plugin. Of course a plugin can not unload it self. It needs to be done
by another plugin (probably the one taking care of the configuration).
If you want the unload to be successfull and more importantly don't leak
you need to restart all the plugins that depend on it.

To unload, you want to uninstall the plugin, then install the new
version and refresh it.

HTH,

PaScaL

Christoph Schwitter wrote:
> Assume you have a plugin that is configurable in several ways. Some of
> these configurations require that the code of the plugin is modified. Its
> part of the plugins function to generate, compile and package the code
> according to the configuration. Now it would be nice if the plugin could
> automatically replace its jar file with the new version and use it.
>
> Its similar to the features offered by the runtime-workspace, but I'd like
> to have that for the "real" eclipse. I know I could generate the jar, end
> eclipse, replace the jar, and restart eclipse. Then the plugin would be
> loaded with the new code. What I want is exactly that, simply without
> restarting eclipse.
>
> Does anyone know whether this is possible, or how it is possible?
>
> (I know that theoretically the code could be rewritten to fit every
> configuration. Its not an option).
>
> Thanks for help
>
> Chris
>
>
Previous Topic:How to publish a plug-in
Next Topic:EclipseStarter equivalent for BootLoader
Goto Forum:
  


Current Time: Tue Jul 16 09:12:07 GMT 2024

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

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

Back to the top