[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Selection tracking versus cursor tracking

Karl Koster wrote:
Benson,

You will probably have to register a MouseMoveListener on the underlying SWT control.
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.

Dani


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?