[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: Can I get a list of installed features?
|
Torbjørn,
As a wild guess, I'd say this "feature details" is handled by
org.eclipse.ui.internal.dialogs.AboutFeaturesDialog, where the list of
displayed bundles is given by the code
// create a descriptive object for each BundleGroup
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]));
}
}
}
in org.eclipse.ui.internal.dialogs.AboutDialog.
Cheers,
Laurent Goubet
Obeo
Andrew Niefer a écrit :
I don't know how to do this, but I do expect it comes from one of the
update plugins.
I would suggest looking at how the about box gets its list.
(Help->About->Feature Details). I'm not sure where the about box code
is though.
-Andrew
Torbjørn G. Dahle wrote:
"Torbjørn G. Dahle" <torbjorn@xxxxxxxxxxxxxx> wrote in message
news:fhk6a0$1r9$1@xxxxxxxxxxxxxxxxxxxx
I want to keep track of which versions of which features are
installed on the many installations of my RCP application. Is there a
way of getting a list of installed features and versions?
The closest I got was using the org.eclipse.update.configurator
plugin's ConfiguratorUtil class, which had this promisingly named method:
ConfiguratorUtils.getCurrentPlatformConfiguration().getConfiguredFeatureEntries()
...but for some reason I only got the org.eclipse.rcp.source and
org.eclipse.rcp features.
Also, this:
ConfiguratorUtils.getCurrentPlatformConfiguration().getPrimaryFeatureIdentifier()
...returns null.
begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:Obeo
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard