Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Why are SWT.SHIFT and SWT.RIGHT detected as duplicated in switch-case loop.
Why are SWT.SHIFT and SWT.RIGHT detected as duplicated in switch-case loop. [message #448075] Thu, 30 December 2004 15:25 Go to next message
strus is currently offline strusFriend
Messages: 113
Registered: July 2009
Senior Member
All is in the title....

I don't know if it is an editor bug or a SWT one ... or not a bug but a
feature !!

Thanks
Re: Why are SWT.SHIFT and SWT.RIGHT detected as duplicated in switch-case loop. [message #448086 is a reply to message #448075] Thu, 30 December 2004 23:22 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="serif">The values of SWT.SHIFT and SWT.RIGHT must be the
same.  To check this, do a System.out.println(int) on both values<br>
<br>
Daniel<br>
</font><br>
strus wrote:
<blockquote cite="midcr16ld$f0b$1@www.eclipse.org" type="cite">All is
in the title....
<br>
<br>
I don't know if it is an editor bug or a SWT one ... or not a bug but a
feature !!
<br>
<br>
Thanks
<br>
<br>
</blockquote>
</body>
</html>
Re: Why are SWT.SHIFT and SWT.RIGHT detected as duplicated in switch-case loop. [message #448148 is a reply to message #448086] Mon, 03 January 2005 18:28 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Because they are for two different purposes, so they can have the same
value. RIGHT is an Alignment style, while SHIFT is a key-code event mask
flag. They would never be seen at the same time, so they can be the same
value.

Daniel Spiewak wrote:
> The values of SWT.SHIFT and SWT.RIGHT must be the same. To check this,
> do a System.out.println(int) on both values
>
> Daniel
>
> strus wrote:
>
>> All is in the title....
>>
>> I don't know if it is an editor bug or a SWT one ... or not a bug but
>> a feature !!
>>
>> Thanks
>>

--
Thanks,
Rich Kulp
Previous Topic:should I dispose of a font when...
Next Topic:Transparent shell..
Goto Forum:
  


Current Time: Wed Oct 21 02:42:00 GMT 2020

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

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

Back to the top