Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » Disable features via P2 Update Manager(Disable features via P2 Update Manager)
Disable features via P2 Update Manager [message #539371] Thu, 10 June 2010 10:50 Go to next message
M D is currently offline M D
Messages: 8
Registered: July 2009
Junior Member
Hi,

Is there any way to disable installed features via P2? I know the Classic Update Manager UI had a "Manage configuration" option which could be used to disable features. I couldn't find something similar in the P2 UI. Is there any UI option or API for this? I am using Eclipse 3.4.2

Thanks in advance for any help.

Regards,
-Manas
Re: Disable features via P2 Update Manager [message #539403 is a reply to message #539371] Thu, 10 June 2010 11:44 Go to previous messageGo to next message
John Arthorne is currently offline John Arthorne
Messages: 174
Registered: July 2009
Senior Member
No, there is no way in p2 to disable a feature other than uninstalling it. p2 does distinguish between uninstalling and deleting content though. You can for example disable the p2 garbage collector, so that uninstalled content is not deleted from disk (or use an extension to the garbage collector to allow you to control what gets deleted). This would be roughly equivalent to disabling a feature in old Update Manager, except there would be no UI for re-enabling it.

John
Re: Disable features via P2 Update Manager [message #539411 is a reply to message #539403] Thu, 10 June 2010 11:57 Go to previous messageGo to next message
M D is currently offline M D
Messages: 8
Registered: July 2009
Junior Member
Thanks for your reply John. Can I use any P2 API to reenable it? We have a requirement that when the user starts the product, the feature should not be available by default and he can enable that feature by some explicit action (on the menu or toolbar etc)

Thanks,
-Manas
Re: Disable features via P2 Update Manager [message #539436 is a reply to message #539411] Thu, 10 June 2010 13:34 Go to previous messageGo to next message
John Arthorne is currently offline John Arthorne
Messages: 174
Registered: July 2009
Senior Member
There is no concept of enable/disable so there is certainly no API for doing this. If you were to use install/uninstall as an alternative approach, then yes there is API for doing install and uninstall of features as of Eclipse 3.6. There is documentation on this API in the help system (Platform Plugin Developers Guide). In Eclipse 3.4.2 we had no API at all, but provided command line tools for doing install/uninstall/etc.There is information on that here:

http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/p2_director.html

John
Re: Disable features via P2 Update Manager [message #755796 is a reply to message #539403] Wed, 09 November 2011 10:43 Go to previous message
Helmut Neubauer is currently offline Helmut Neubauer
Messages: 54
Registered: July 2009
Member
We need to disable the p2 garbage collector, because we have an old feature, which can't be deleted by the p2 update mechanism, because there are some files locked while running our RCP client. So we need to disable the p2 garbage collector, but we don't know how. Perhaps you can give us a hint?
Previous Topic:Restarting the application after prestartup silent update with p2
Next Topic:Ingedev
Goto Forum:
  


Current Time: Fri Aug 22 01:57:06 EDT 2014

Powered by FUDForum. Page generated in 0.02935 seconds