Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] How to get the version of a feature installed in eclipse?

thank you very much for your help =)

Regards.

Octavio Córdova Limón
Staff Software Engineer
IBM Rational Common Desktop Install
Phone: (011-52-33) 3669-7000 Ex. 5942
T/L: 877-5942
octavioc@xxxxxxxxxxx


                                                                                                                                              
  From:       Jeff McAffer <jeff@xxxxxxxxxxxxxxxxx>                                                                                           
                                                                                                                                              
  To:         P2 developer discussions <p2-dev@xxxxxxxxxxx>                                                                                   
                                                                                                                                              
  Date:       01/28/2011 03:59 PM                                                                                                             
                                                                                                                                              
  Subject:    Re: [p2-dev] How to get the version of a feature installed in	eclipse?                                                          
                                                                                                                                              
  Sent by:    p2-dev-bounces@xxxxxxxxxxx                                                                                                      
                                                                                                                                              





Beware that that returns the bundle group providers not the features.  In
practice today these are typically one and the same but the notion of
bundle groups was introduced specifically to enable non-feature-based
groupings of bundles to exist.

Jeff

On 2011-01-28, at 11:35 AM, Paul Webster wrote:

> On Fri, Jan 28, 2011 at 12:12 PM, Octavio Cordova Limon/Mexico/IBM
> <octavioc@xxxxxxxxxxx> wrote:
>> I would like to get the version of a feature installed on eclipse from
my
>> code
>
>
> If you are on top of Equinox/core.runtime, you can also use
> org.eclipse.core.runtime.Platform.getBundleGroupProviders().  See how
> we use them in
> org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.getFeatureInfos()
>
> PW
>
> --
> Paul Webster
> Hi floor.  Make me a sammich! - GIR
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev

_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev





Back to the top