How to move text editor cursor on right click? [message #251760] |
Fri, 11 June 2004 09:03 |
Eclipse User |
|
|
|
Originally posted by: mrtom.us.ibm.com
I've defined a action that appears on the context menu when the user
right-clicks in the text editor. (Actually the Java editor, if it makes
a difference.) What I've noticed is that, unlike most other interfaces
I'm familar with, right-clicking in the editor does not move the cursor
before popping up the context menu. If the menu action depends on the
location of the cursor, as mine does, the user is forced to left-click
to position the cursor, then right-click to activate the menu. This
isn't very intuitive (and is in fact contrary to how other parts of
Eclipse work).
Is there a way for my action to determine where the right-click occurred
so I can positon the cursor myself?
Thanks,
Tom
|
|
|
Powered by
FUDForum. Page generated in 0.27825 seconds