Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Get list of installed features in RCP app
Get list of installed features in RCP app [message #1751602] Wed, 11 January 2017 19:08 Go to next message
Ken Keefe is currently offline Ken KeefeFriend
Messages: 31
Registered: April 2012
I've been searching for a few days now for a solution. I'd like to get a comprehensive list of installed features in my running RCP application. This page ( suggests using Platform.getBundleGroupProviders(). This looks perfect for what I need, but doesn't actually work.

When I run it, the array it returns is size 0. Also, when I look at the returned array in the debugger, the value of the array shows this error message instead: org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.

Does this mean that it was unable to load the class that implements IBundleGroupProvider? When I look at the type hierarchy for IBundleGroupProvider, there is nothing listed that implements it. So, I am guessing I am missing something from my target.

Anyone have some suggestions on how to do this?

I was able to get a list of all installed plugins without a problem by doing this:

Bundle allBundles[] = Platform.getProduct().getDefiningBundle().getBundleContext().getBundles();

Features are proving to be more difficult.
Re: Get list of installed features in RCP app [message #1751837 is a reply to message #1751602] Mon, 16 January 2017 03:27 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 876
Registered: January 2012
Senior Member

The IBundleGroupProvider implementations are in org.eclipse.update.configurator. I'm not really up on how that all fits in together.

The other approach is to use p2 and query your current profile for all installed features.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Install new feature(s) in e4 RCP
Next Topic:CSS Stylesheet for Eclipse RCP APP
Goto Forum:

Current Time: Tue Sep 29 11:56:57 GMT 2020

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

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

Back to the top