Community
Participate
Working Groups
Build Identifier: 20110916-0149 When I want to select a whole word through a double click it sometimes happens, that I accidentally do a triple click, which leads to the selection of the whole line. Unfortunately this also makes the editor scroll horizontally to the beginning of the line. Hence I have to scroll back to the word and do it again. This can be pretty nasty, if the line is not a short one. Since I have never ever needed that whole-line-selection-through-triple-click thing, I would be fine disabling it, if this is possible. Is it? I don't see the reason for scrolling back to column 0. The editor's view should stay where it is when selecting the whole line. Reproducible: Always
This is the behavior we get from StyledText and this is the expected behavior which most editors exhibit. Some set the caret at the end but they also scroll. I'd close this as INVALID or WONTFIX. Moving to SWT for comment.
This might be the behavior of most text editors. But don't we want eclipse to be better? ;) I've asked some colleagues. And they all agree, that this behavior always sucked in any editor.
(In reply to comment #2) > This might be the behavior of most text editors. But don't we want eclipse to > be better? ;) Sure, but loosing the context/caret is not better but worse.
Yes, you're loosing the caret, but not the context. The context is lost with the current behavior. And this is exactly my point.
I agree with Dani. That said, note that StyledText allows the user to disable the double-click/triple-click behavior by calling setDoubleClickEnabled(false).
closing.
You agree with him by the statement, that context is lost? Why is the leftmost part of the current line more "context" than the part, that I scrolled to? Scrolling left most doesn't make any sense to me. Well, if I can disable the tripple-click behavior without disabling the double-click behavior, I am fine. Though I still consider it a bug. Could you possibly place the tripple-click disabling on the preferences pages?
> Could you possibly place the tripple-click disabling on the preferences pages? Sorry, this won't happen.
Closing as per comment 8.