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

"laurent Goubet" <laurent.goubet@xxxxxxx> wrote in message 
news:fhkgca$24b$1@xxxxxxxxxxxxxxxxxxxx
> IBundleGroupProvider[] providers = Platform.getBundleGroupProviders();

Yeah, I had already tried that, but my own feature didn't show up. However, 
that was only when debugging my product. I guess even though the product 
includes the feature it doesn't count as installed when running it in debug 
mode. After exporting the application and running it this works perfectly. 
Thanks!

> 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.
>>>
>
>