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 10:52
Simon Goodall is currently offline Simon Goodall
Messages: 11
Registered: July 2009
Junior 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: Wed Aug 27 07:14:16 EDT 2014

Powered by FUDForum. Page generated in 0.02427 seconds