[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.equinox] Re: p2 detecting newly installed bundles
|
- From: Chris Aniszczyk <zx@xxxxxxxxx>
- Date: Sun, 20 Jul 2008 19:43:28 -0500
- Newsgroups: eclipse.technology.equinox
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
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