[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Re: p2 detecting newly installed bundles

Francis Upton (News) wrote:
My RCP application is using the p2 software update manager, and that appears to be working fine. I want to detect when a bundle has been installed so that I make take some actions.

I have tried to figure out how to make BundleWatcher work and been so far unsuccessful, I try registering it with the HookRegistry only to be informed that the HookRegistry is read only. And even if I get this working, I'm not sure it will show the install event.

Is there some way I can see a bundle as it's installed (dynamically)?

Couldn't you just use a BundleContext and add a bundle listener?

http://www.osgi.org/javadoc/r4/org/osgi/framework/BundleListener.html

Cheers,

~ Chris