Skip to main content



      Home
Home » Eclipse Projects » Equinox » Get List of all Bundles
Get List of all Bundles [message #129474] Mon, 20 April 2009 18:13 Go to next message
Eclipse UserFriend
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 18:28 Go to previous messageGo to next message
Eclipse UserFriend
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 07:24 Go to previous messageGo to next message
Eclipse UserFriend
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 07:27] by Moderator

Re: Get List of all Bundles [message #1001824 is a reply to message #129474] Thu, 17 January 2013 07:25 Go to previous message
Eclipse UserFriend
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 07:27] by Moderator

Previous Topic:Certificate Problem with Headless installing plugins
Next Topic:How to load a workspace specific plugin
Goto Forum:
  


Current Time: Tue Jul 01 18:39:52 EDT 2025

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

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

Back to the top