Query Bundles.info for installed plugin and version [message #629564] |
Tue, 28 September 2010 17:07 |
Eclipse User |
|
|
|
Originally posted by: MrBob.bob.bob
I'm looking for a simple way using P2 to query whether or not a plugin
is installed, AND if so, what its version is.
The code, will start with only a path to the bundles.info (this is the
one piece of information I have).
Is there a P2 util class to do this? Or can someone point me to some
starter code, or a class to use that will lead me to the right solution.
I suppose, the other option, is to write a little bit of custom java
code to open the file, and directly inspect for the information.
However.. I'd like to use existing API if possible.
|
|
|
|
Re: Query Bundles.info for installed plugin and version [message #629579 is a reply to message #629577] |
Tue, 28 September 2010 18:11 |
Eclipse User |
|
|
|
Originally posted by: MrBob.bob.bob
Thanks for reply.
Any java package I should specifically start my look at? Is there a wiki
that maybe shows an example of how I might do a query?
Henrik Lindberg wrote:
> There are predefined queries as well as a comprehensive query API
> available in p2.
> - henrik
>
> MrBob <MrBob@bob.bob> wrote:
>> I'm looking for a simple way using P2 to query whether or not a plugin
>> is installed, AND if so, what its version is.
>>
>> The code, will start with only a path to the bundles.info (this is the
>> one piece of information I have).
>>
>> Is there a P2 util class to do this? Or can someone point me to some
>> starter code, or a class to use that will lead me to the right
>> solution.
>>
>>
>> I suppose, the other option, is to write a little bit of custom java
>> code to open the file, and directly inspect for the information.
>> However.. I'd like to use existing API if possible.
>
>
|
|
|
Re: Query Bundles.info for installed plugin and version [message #629613 is a reply to message #629577] |
Tue, 28 September 2010 22:29 |
Eclipse User |
|
|
|
Originally posted by: MrBob.bob.bob
Thanks for reply.
Any java package I should specifically start my look at? Is there a wiki
that maybe shows an example of how I might do a query?
Henrik Lindberg wrote:
> There are predefined queries as well as a comprehensive query API
> available in p2.
> - henrik
>
> MrBob <MrBob@bob.bob> wrote:
>> I'm looking for a simple way using P2 to query whether or not a plugin
>> is installed, AND if so, what its version is.
>>
>> The code, will start with only a path to the bundles.info (this is the
>> one piece of information I have).
>>
>> Is there a P2 util class to do this? Or can someone point me to some
>> starter code, or a class to use that will lead me to the right
>> solution.
>>
>>
>> I suppose, the other option, is to write a little bit of custom java
>> code to open the file, and directly inspect for the information.
>> However.. I'd like to use existing API if possible.
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03586 seconds