Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Right click editor offset
Right click editor offset [message #776135] Sat, 07 January 2012 15:42 Go to next message
Roded Bahat is currently offline Roded BahatFriend
Messages: 152
Registered: August 2011
Senior Member
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 13:13 Go to previous message
shreyas k is currently offline shreyas kFriend
Messages: 7
Registered: January 2012
Junior Member
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 Aug 08 15:35:44 GMT 2020

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

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

Back to the top