Debasish Halder
Debasish Halder

Reputation: 185

How to get all installed features in rcp 4 application

I'm trying to get a list of features that are installed through code. How can I programmatically list all installed features?

Upvotes: 1

Views: 162

Answers (1)

greg-449
greg-449

Reputation: 111216

In a pure e4 application the

IBundleGroupProvider[] providers = Platform.getBundleGroupProviders();

call always returns an empty array because the code that populates the list (org.eclipse.update.configurator) is not included.

There does not appear to be anything in e4 that has the features list.

The RCP build does create a platform.xml file in the configuration/org.eclipse.update directory in the RCP installation which contains the features list. You could try reading this.

Note that the platform.xml does not exist if you just run your RCP using 'Run as Eclipse Application` from within Eclipse. It only exists in the exported RCP.

Upvotes: 1

Related Questions