[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?

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.