Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to safely disable a bundle
How to safely disable a bundle [message #489987] Tue, 06 October 2009 18:34
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
I would like to know the safest way to let users switch between two versions of a bundle. Neither bundle is a singleton, but typically, users will only want one of them running at a time.

To be more specific, in Eclipse, I have a preference page that allows users to switch. When clicking a button, the active bundle is stopped and disabled (by adding a DisabledInfo to the SystemState), and the inactive bundle is enabled and started. Next, PackageAdmin.refreshPackages() is called on these bundles. And a restart occurs immediately after that.

The problem is that by doing the refresh, all the other plugins that depend on the compiler plugin also shut down and restart. This causes many exceptions to be raised in the error log (eg- "Error notifying registry change listener").

Is there some way that I can schedule the disabling of a bundle (and refreshing its packages) to occur on restart, rather than immediately? Or is there someway that I can avoid throwing these exceptions?

thanks,
--andrew
Previous Topic:modify the pre-trusted certificates used by the plug-in validator?
Next Topic:How to change the default product having installed a feature into platform?
Goto Forum:
  


Current Time: Fri Apr 26 08:17:33 GMT 2024

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

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

Back to the top