[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.equinox] Re: p2 detecting newly installed bundles
|
Thanks Chris.
I tried adding a BundleListener and the no events for the bundle that I
installed showed up (I put a println in the listener to see what it
saw). I should have mentioned that before. I assume that it does not
matter which BundleContext you register the BundleListener for. The
specification is not clear on this point, but I saw many events for
unrelated bundles.
Any other ideas?
Francis
Chris Aniszczyk wrote:
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
--
*new* Common Navigator Framework section in:
3.4RC4 Platform Plugin Developer Guide (Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/cnf.htm
http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases
You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go