Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Auto start bundles programmaticly
Auto start bundles programmaticly [message #1076536] Wed, 31 July 2013 14:52
Simon Goodall is currently offline Simon GoodallFriend
Messages: 35
Registered: July 2009
Member
I wish to be able to mark a bundle as auto-start programatically.

My bundle has a service which is to be enabled when a user ticks a box
in a preference page and to be disabled when it is unticked. I have some
code to register/unregister a service on a preference change in the
bundle activator and to start the service when the activator starts.
However if the bundle is not started, then the activator code will not run.

I am looking to also modify the bundle start behaviour when the
preference changes. It looks like I need to generate a touchpoint
instruction to change this value. However I've not been able to put all
the pieces together to work out how to execute this instruction. Most
examples I have found are related to installing a new bundle, not
modifying an existing one.

Can someone point me towards how I would go about this?

Is there a better way to do this? I am looking to avoid adding the
autostart to my .product configuration.


Thanks,

Simon
Previous Topic:Update site issue
Next Topic:Installing fragment depending on the versions of already installed bundles
Goto Forum:
  


Current Time: Tue Mar 19 03:11:09 GMT 2024

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

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

Back to the top