Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Get List of all Bundles
Get List of all Bundles [message #129474] Mon, 20 April 2009 22:13 Go to next message
Hauke Fuhrmann is currently offline Hauke Fuhrmann
Messages: 324
Registered: July 2009
Senior Member
Hi there,

I simply need to get the list of all installed bundles in the Eclipse
platform programmatically.

There is only
Platform.getBundle(String symbolicName)
which requires to address a specific bundle which I don't want.

Also there is
Platform.getPluginRegistry()
which is propably what I want, but it's deprecated.

Hence is getting a list of all bundles not supported anymore?? That can
hardly be so difficult...

Cheers,
Hauke
Re: Get List of all Bundles [message #129486 is a reply to message #129474] Mon, 20 April 2009 22:28 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas Watson
Messages: 436
Registered: July 2009
Senior Member
The BundleContext class has a getBundles() method that returns all
installed bundles. You get an instance of the BundleContext when your
bundle is activated (BundleActivator.start(BundleContext)).

HTH.

Tom
Re: Get List of all Bundles [message #1001822 is a reply to message #129474] Thu, 17 January 2013 12:24 Go to previous messageGo to next message
sumit singh is currently offline sumit singh
Messages: 131
Registered: October 2012
Location: Bangalore
Senior Member

Use BundleContext to get list of installed plugin in your RCP/eclipse

BundleContext ctx =  FrameworkUtil.getBundle(your/class/name.class).getBundleContext();
		Bundle[] bundles = ctx.getBundles();


[Updated on: Thu, 17 January 2013 12:27]

Report message to a moderator

Re: Get List of all Bundles [message #1001824 is a reply to message #129474] Thu, 17 January 2013 12:25 Go to previous message
sumit singh is currently offline sumit singh
Messages: 131
Registered: October 2012
Location: Bangalore
Senior Member

Use BundleContext to get list of installed plugin in your RCP/eclipse

BundleContext ctx =  FrameworkUtil.getBundle(your/class/name.class).getBundleContext();
Bundle[] bundles = ctx.getBundles();


[Updated on: Thu, 17 January 2013 12:27]

Report message to a moderator

Previous Topic:Certificate Problem with Headless installing plugins
Next Topic:SSH keystore incompatible if generated with IBM JDK
Goto Forum:
  


Current Time: Fri Oct 31 19:35:36 GMT 2014

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

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