Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Version
SWT Version [message #455701] Thu, 19 May 2005 17:23 Go to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

I can see that I can do SWT.getVersion() to get the version of SWT. The
problem is the numbers returned don't seem to coorespond with the
version of Eclipse. I need to know if the version is 3.0.x or if it is
version 3.1 or later because I need to be able to target both versions.

In my case if it is 3.1 or later I can use Composite.layout(Control[]
controls), but I need to do the old way for 3.0.x versions.
--
Thanks,
Rich Kulp
Re: SWT Version [message #455710 is a reply to message #455701] Thu, 19 May 2005 20:40 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
If it is 3.0.x, the value of SWT.getVersion() will be between 3000 and 3099.
(There is no way to e
If it is 3.1.x, the value of SWT.getVersion() will be between 3100 and 3199.

Alternately you can the Eclipse mechanism for accessing the version of a
plugin (i.e. not SWT.getVersion()) since SWT sets the plugin and fragment
version numbers in our Manifest file.

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:d6ii3p$efv$1@news.eclipse.org...
> Hi,
>
> I can see that I can do SWT.getVersion() to get the version of SWT. The
> problem is the numbers returned don't seem to coorespond with the version
> of Eclipse. I need to know if the version is 3.0.x or if it is version 3.1
> or later because I need to be able to target both versions.
>
> In my case if it is 3.1 or later I can use Composite.layout(Control[]
> controls), but I need to do the old way for 3.0.x versions.
> --
> Thanks,
> Rich Kulp
Re: SWT Version [message #455832 is a reply to message #455710] Thu, 19 May 2005 21:11 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Thanks for the info. I'll need to rely on the SWT.getVersion() because
this can also run standalone without Eclipse being up and running.

Veronika Irvine wrote:
> If it is 3.0.x, the value of SWT.getVersion() will be between 3000 and 3099.
> (There is no way to e
> If it is 3.1.x, the value of SWT.getVersion() will be between 3100 and 3199.
>

--
Thanks,
Rich Kulp
Previous Topic:Is Layout required for Event handling?
Next Topic:Display PDF in eclipse
Goto Forum:
  


Current Time: Thu Sep 19 09:47:01 GMT 2024

Powered by FUDForum. Page generated in 0.04703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top