| [news.eclipse.platform] Re: Selection tracking versus cursor tracking |
Don't do this. You should not update immediately on caret move. You can use a post selection listener which will give you the caret location.Benson,
You will probably have to register a MouseMoveListener on the underlying SWT control.
Benson Margulies wrote:I've got a case where I need a view to reflect the cursor position, not just
the selection, of an editor. Adding the NullSelectionListener interface has
the effect of getting me a notification when the selection goes from
something to nothing, but not of notifying me of further cursor movement.
Should I just implement my own notification structure for this?