I want to reload a plugin in an Eclipse RCP application at runtime

I am writing an Eclipse RCP s> 50 plugins project. Whenever you change something in your plugin, I have to take the time to close the RCP application and start it again. It takes time.

I would rather reload the newly built plugin in the RCP-runtime. Is this possible, and if so, how?

Thank!

+3


source to share


1 answer


I would try this:

import org.eclipse.core.runtime.Platform;

...
// at the place you need to reload your plugin

Platform.getBundle( "bundle " );

      



and replace the content of the string "bundle"

with the value from the MANIFEST.MF

record Bundle-SymbolicName:

.

+1


source







All Articles