Skip to main content


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 FuhrmannFriend
Messages: 333
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 WatsonFriend
Messages: 503
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 SinghFriend
Messages: 141
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 SinghFriend
Messages: 141
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:How to load a workspace specific plugin
Goto Forum:
  


Current Time: Wed Apr 24 21:28:07 GMT 2024

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

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

Back to the top