Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Focus rectangle is not drawn in 3.3
Focus rectangle is not drawn in 3.3 [message #238442] Mon, 10 September 2007 20:49 Go to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I have reused the SelectableLabel from the Ediagram example to draw a focus
rectangle around some text. This worked perfectly well until Eclipse 3.3,
when the rectangle suddenly disappeared. I debugged it down to the method
org.eclipse.swt.graphics.GC.drawFocus (int x, int y, int width, int
height)
which on the second line has this check:
if ((data.uiState & OS.UISF_HIDEFOCUS) != 0) return;
In the debugger I could see that data.uiState is always 3, so drawFocus()
always exits without doing anything. Is there something I can do in GEF to
bring the focus rectangle back or should I talk to the SWT folks?
Re: Focus rectangle is not drawn in 3.3 [message #238557 is a reply to message #238442] Wed, 19 September 2007 15:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

Sounds like a breaking change in SWT.

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:fc4al7$tbi$1@build.eclipse.org...
>I have reused the SelectableLabel from the Ediagram example to draw a focus
>rectangle around some text. This worked perfectly well until Eclipse 3.3,
>when the rectangle suddenly disappeared. I debugged it down to the method
> org.eclipse.swt.graphics.GC.drawFocus (int x, int y, int width, int
> height)
> which on the second line has this check:
> if ((data.uiState & OS.UISF_HIDEFOCUS) != 0) return;
> In the debugger I could see that data.uiState is always 3, so drawFocus()
> always exits without doing anything. Is there something I can do in GEF to
> bring the focus rectangle back or should I talk to the SWT folks?
>
Re: Focus rectangle is not drawn in 3.3 [message #238647 is a reply to message #238442] Tue, 25 September 2007 21:04 Go to previous message
Eclipse UserFriend
Originally posted by: aczerwonka.3esi.com

We just put a label inside a figure.

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:fc4al7$tbi$1@build.eclipse.org...
>I have reused the SelectableLabel from the Ediagram example to draw a focus
>rectangle around some text. This worked perfectly well until Eclipse 3.3,
>when the rectangle suddenly disappeared. I debugged it down to the method
> org.eclipse.swt.graphics.GC.drawFocus (int x, int y, int width, int
> height)
> which on the second line has this check:
> if ((data.uiState & OS.UISF_HIDEFOCUS) != 0) return;
> In the debugger I could see that data.uiState is always 3, so drawFocus()
> always exits without doing anything. Is there something I can do in GEF to
> bring the focus rectangle back or should I talk to the SWT folks?
>
Previous Topic:Using GridLayer without ScalableRootEditPart
Next Topic:bug in AbstractGraphicalEditPart#refreshSourceConnection
Goto Forum:
  


Current Time: Mon Nov 24 16:26:36 GMT 2014

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

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