Bug 203730 - [rulers] Scrolling an editor by dragging text does not update line numbers ruler
Summary: [rulers] Scrolling an editor by dragging text does not update line numbers ruler
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on: 204079
Blocks:
  Show dependency tree
 
Reported: 2007-09-18 06:53 EDT by Markus Keller CLA
Modified: 2022-01-09 01:44 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-09-18 06:53:29 EDT
I20070918-0010

In a long text editor, select a word and drag it to the top or bottom edge of the viewport. The text area starts to scroll, but the line number ruler and the vertical ruler don't scroll.
Comment 1 Dani Megert CLA 2007-09-19 05:30:17 EDT
The widget goes into 'silent' mode while dragging the text i.e. no mouse move events are sent out.

BTW, is there a simpler way to detect StyledText's viewport change than listening to key and mouse events? E.g. something like a viewport listener on the scrollable?
Comment 2 Felipe Heidrich CLA 2007-09-19 12:21:54 EDT
During drag you are not suppose to receive mouse events.

How do you update the line number ruler ? Do you listem for Selection change events in the vertical scrollbar and in the styledtext ?
Comment 3 Dani Megert CLA 2007-09-19 12:29:18 EDT
We use a selection listener on the scroll bar, a document changed listener and a key listener. This is wrapped in the ViewPortGuard. So far it did not even listen to mouse move events but when I tried to add it I found out that it's not sent.

Note that the state is OK once DnD is finished.
Comment 4 Duong Nguyen CLA 2007-09-19 14:23:50 EDT
That's right. During a drag-n-drop, you will not receive mouse move events. If you need to track the mouse movement during a drag, you must listen to the dragOver event.
Comment 5 Dani Megert CLA 2007-09-20 03:11:23 EDT
OK, I take the bug back then. Filed SWT enhancement request to get a viewport listener (bug 204079).
Comment 6 Dani Megert CLA 2007-09-20 10:37:36 EDT
>, you must listen to the dragOver event.
Nice try ;-)
There's no API to do that from outside: only the site that adds the drag source can do that and since there is no API to get the drag source (see also bug 173410), there's nothing Text can do here.
Comment 7 Eclipse Webmaster CLA 2019-09-06 16:13:19 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 8 Eclipse Genie CLA 2022-01-09 01:44:40 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.