Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to move text editor cursor on right click?
How to move text editor cursor on right click? [message #251760] Fri, 11 June 2004 09:03
Eclipse UserFriend
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
Previous Topic:Trouble exporting a feature with extra jar files
Next Topic:Plug-in's home directory (by code)?
Goto Forum:
  


Current Time: Mon May 12 13:50:17 EDT 2025

Powered by FUDForum. Page generated in 0.27825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top