Mickael Istria Messages: 612 Registered: July 2009 Location: Grenoble, France
Senior Member
Mario Cervera a écrit :
> Hi,
Hi,
> does anyone know how to programatically retrieve the list of plugins given a
> feature id?
You should have a look at the implementation of the listener on the "Plug-in Details" button of the InstallationDialog.
Paul Webster Messages: 6813 Registered: July 2009 Location: Ottawa
Senior Member
Mario Cervera wrote:
> Thanks for the idea :-). I had solved the problem using internal code from
> org.eclipse.update.internal.configurator but I'd like to avoid that.
>
> Can you show me in which Eclipse plug-in that listener is? I've been
> searching for it for a while but I can't seem to find it.
Look for subclasses of org.eclipse.ui.about.InstallationPage ... there's
a lot of code that abstracts where the information in the system is
coming from.
But most of the information is retrieved from API in
org.eclipse.ui.internal.dialogs.AboutDialog.AboutDialog(Shel l):
IBundleGroupProvider[] providers = Platform.getBundleGroupProviders();
LinkedList groups = new LinkedList();
if (providers != null) {
for (int i = 0; i < providers.length; ++i) {
IBundleGroup[] bundleGroups = providers[i].getBundleGroups();
for (int j = 0; j < bundleGroups.length; ++j) {
groups.add(new AboutBundleGroupData(bundleGroups[j]));
}
}
}