Reputation: 185
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
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