Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Right click editor offset
Right click editor offset [message #776135] Sat, 07 January 2012 10:42 Go to next message
Eclipse UserFriend
Hello,
I'm trying to allow a user action from an editor's right click menu. That user action should operate on the object of text the user right clicked in the editor.
I managed to get the current editor's cursor offset by using ISelectionProvider, and it works well. Except for the case when the user didn't specifically move the cursor to the desired object before right clicking to activate the action.
Is there a way to retrieve the offset in the editor where the right click was initiated?
Thanks,
Roded
Re: Right click editor offset [message #780525 is a reply to message #776135] Wed, 18 January 2012 08:13 Go to previous message
Eclipse UserFriend
yes it can be done using ISelection-object, and u can use it for your requirement by making ur class implement IObjectActionDelegate
whether u right-click or left-click the ISelection-object has the details of the selected item...
Previous Topic:Extending / Replacing bundle localization
Next Topic:Text Right Alignment in SWT Table column
Goto Forum:
  


Current Time: Sat Jul 12 18:31:13 EDT 2025

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

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

Back to the top