Eclipse version [message #328220] |
Mon, 19 May 2008 10:12 |
Eclipse User |
|
|
|
Originally posted by: egidijus.vaisnora.nomagiclt.com
What is good way to find out what eclipse version is installed? My code must ensure to integrate properly with Eclipse platform
and when user selects Eclipse install root, I need to decide - if it is 3.4 eclipse and search for "dropins" directory, or it
is earlier Eclipse platform with "plugins" directory?
|
|
|
|
Re: Eclipse version [message #328225 is a reply to message #328220] |
Mon, 19 May 2008 13:25 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Egidijus Vaisnora wrote:
> What is good way to find out what eclipse version is installed? My code
> must ensure to integrate properly with Eclipse platform and when user
> selects Eclipse install root, I need to decide - if it is 3.4 eclipse
> and search for "dropins" directory, or it is earlier Eclipse platform
> with "plugins" directory?
Well, versions prior to 3.4 won't even have a dropins directory, os you
could just look for that and if its there assume you are dealing with 3.4.
The only other idea I have is to look in the features directory for a
directory name that begins with "org.eclipse.platform_3.4" as opposed to
"org.eclipse.platform_3.3"
Hope this helps,
Eric
|
|
|
Re: Eclipse version [message #328229 is a reply to message #328220] |
Mon, 19 May 2008 14:55 |
Eclipse User |
|
|
|
Originally posted by: eclipse.shedid.de
Egidijus Vaisnora schrieb:
> What is good way to find out what eclipse version is installed? My code
> must ensure to integrate properly with Eclipse platform and when user
> selects Eclipse install root, I need to decide - if it is 3.4 eclipse
> and search for "dropins" directory, or it is earlier Eclipse platform
> with "plugins" directory?
How about parsing Platform.getProduct().getDescription() ?
Regards,
Dirk
|
|
|
Re: Eclipse version [message #328237 is a reply to message #328229] |
Mon, 19 May 2008 17:15 |
Eclipse User |
|
|
|
Originally posted by: totolaricot.mac.com
Dirk Bernsau wrote:
> Egidijus Vaisnora schrieb:
>> What is good way to find out what eclipse version is installed? My
>> code must ensure to integrate properly with Eclipse platform and when
>> user selects Eclipse install root, I need to decide - if it is 3.4
>> eclipse and search for "dropins" directory, or it is earlier Eclipse
>> platform with "plugins" directory?
>
> How about parsing Platform.getProduct().getDescription() ?
>
> Regards,
> Dirk
from the formulation of the question, I was under the impression that he
was looking for that information from outside of eclipse. in that case,
looking at the plugin version might be better. another problem might
exist for derived products and might have a different topology on disk
(or even eclipse 3.4 with some shared install)
--
Laurent Mihalkovic, co-author SWT/JFace in Action (www.manning.com/scarpino)
|
|
|
Re: Eclipse version [message #328249 is a reply to message #328237] |
Tue, 20 May 2008 06:08 |
Eclipse User |
|
|
|
Originally posted by: egidijus.vaisnora.nomagiclt.com
Exactly, idea is to find Eclipse version, not starting it. And, of course, there is problem with derived products, like RAD,
JBuilder and etc. - for all products I need to specify different integration scenario (my tool helps to integrate product as
plugin for Eclipse, regarding the Eclipse version or derivation )
L. Mihalkovic wrote:
> Dirk Bernsau wrote:
>> Egidijus Vaisnora schrieb:
>>> What is good way to find out what eclipse version is installed? My
>>> code must ensure to integrate properly with Eclipse platform and when
>>> user selects Eclipse install root, I need to decide - if it is 3.4
>>> eclipse and search for "dropins" directory, or it is earlier Eclipse
>>> platform with "plugins" directory?
>>
>> How about parsing Platform.getProduct().getDescription() ?
>>
>> Regards,
>> Dirk
> from the formulation of the question, I was under the impression that he
> was looking for that information from outside of eclipse. in that case,
> looking at the plugin version might be better. another problem might
> exist for derived products and might have a different topology on disk
> (or even eclipse 3.4 with some shared install)
>
|
|
|
Powered by
FUDForum. Page generated in 0.03226 seconds