Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Double clicking in a Text and word boundaries on linux
Double clicking in a Text and word boundaries on linux [message #448645] Wed, 12 January 2005 19:07 Go to next message
Eddie Galvez is currently offline Eddie GalvezFriend
Messages: 103
Registered: July 2009
Senior Member
We have an SWT application that at some point presents a Text, that's
contained within a Form. If the text has the following string: "input1",
double clicking on the 'n' for example, on windows will always select
the entire "input1" string. On linux, we observe only "input" to be
selected. "input1" can be selected if you double clicking between the
't' and the '1'. The '1' alone gets selected if double clicking over it.

Is this normal?

Thank you,
Eddie
Re: Double clicking in a Text and word boundaries on linux [message #448883 is a reply to message #448645] Fri, 14 January 2005 17:46 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
StyledText is using Character.isLetterOrDigit to determine which characters
to include in the word. It correctly includes the "1" when double clicking
anywhere in "input1". However, this behaviour is overriden by the JFace
TextViewer and implementors of ITextViewer. What is the exact class that
you are using?


"Eddie Galvez" <eddie@streambase.com> wrote in message
news:cs3si2$1k5$1@www.eclipse.org...
> We have an SWT application that at some point presents a Text, that's
> contained within a Form. If the text has the following string: "input1",
> double clicking on the 'n' for example, on windows will always select the
> entire "input1" string. On linux, we observe only "input" to be selected.
> "input1" can be selected if you double clicking between the 't' and the
> '1'. The '1' alone gets selected if double clicking over it.
>
> Is this normal?
>
> Thank you,
> Eddie
Re: Double clicking in a Text and word boundaries on linux [message #449147 is a reply to message #448883] Tue, 18 January 2005 19:19 Go to previous message
Eddie Galvez is currently offline Eddie GalvezFriend
Messages: 103
Registered: July 2009
Senior Member
swt.widgets.Text ! (Eclipse 3.0.1)

Put another way, the exact same app, run on windows and linux behaves
differently (I just did it again). I double click a word inside a Text
(inside a form, inside a view), "InputStream1" double clicking around
the t. On linux, the 1 is not highlighted. On windows, the entire word is.

Linux is running KDE 3.3.0-5 Red Hat (This is Fedora Core 3)

Thanks,
- Eddie

Veronika Irvine wrote:
> StyledText is using Character.isLetterOrDigit to determine which characters
> to include in the word. It correctly includes the "1" when double clicking
> anywhere in "input1". However, this behaviour is overriden by the JFace
> TextViewer and implementors of ITextViewer. What is the exact class that
> you are using?
Previous Topic:test
Next Topic:swt.ole.win32: Variant to java.util.Date
Goto Forum:
  


Current Time: Thu Apr 25 17:07:16 GMT 2024

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

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

Back to the top