Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 15610 - StyledText - Double-Click-Drag doesn't work, works on Text
Summary: StyledText - Double-Click-Drag doesn't work, works on Text
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P4 enhancement (vote)
Target Milestone: 2.1   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-09 09:21 EDT by Randy Hudson CLA
Modified: 2002-08-06 11:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2002-05-09 09:21:06 EDT
A double-click-drag (click, and then press again without releasing) doesn't 
work.  This is typically used to swipe-select, but at the word boundary.  This 
is what the Text control does.
Comment 1 Mike Wilson CLA 2002-05-09 11:49:45 EDT
As you know, the StyledText widget is not a native widget, and as such does 
not necessarilly have the same behavior as the native widgets do.

In any case, some people find this behavior valuable; others do not. It's not 
immediately clear that it is the best choice for a "code oriented" editor, 
which was the original design goal of StyledText. So, I certainly understand 
why this functionality might not be available.
Comment 2 Lynne Kues CLA 2002-05-09 11:57:38 EDT
Decide on this later.  The behavior could be provided on top of StyledText.
Comment 3 Randy Hudson CLA 2002-05-09 13:16:49 EDT
I disagree that just because the widget is "code-oriented" that this feature 
has no use.  You could easily allow clients to provide a helper to tokenize the 
swiped text, thus handling java syntax.
Comment 4 Lynne Kues CLA 2002-07-08 10:45:25 EDT
Reopen
Comment 5 Knut Radloff CLA 2002-08-01 16:56:18 EDT
If you would like to see this behavior in Eclipse you have to move the bug to 
UI. Someone is turning off double click support in StyledText and implements 
their own (I think it's the AbstractTextEditor).
So even if SWT implemented this feature in StyledText you would not benefit.

That said, it seems like a useful feature. Will look into implementing it in 
StyledText.
Comment 6 Knut Radloff CLA 2002-08-06 11:57:24 EDT
Fixed in > 20020806