Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » DoubleClick with key pressing
DoubleClick with key pressing [message #910901] Mon, 10 September 2012 15:32 Go to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Hello,

I am trying to implement in the generated emf editor a doubleclick listener which uses key pressing, too.
For example I want to open another editor I click double on the item while pressing the ctrl key.

Adding the DoubleClickListener is very easy with the method addDoubleClickListener from the viewer class.

But how to combine both?
My idea was to get the pressed key while the event occured, but I don't know how to get that information.

Thanks for any advices.
Re: DoubleClick with key pressing [message #910912 is a reply to message #910901] Mon, 10 September 2012 15:54 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
This isn't an EMF question. It doesn't appear that JFace supports
something like that, so it's more of an SWT question.



On 10/09/2012 5:32 PM, Missing name Mising name wrote:
> Hello,
>
> I am trying to implement in the generated emf editor a doubleclick
> listener which uses key pressing, too.
> For example I want to open another editor I click double on the item
> while pressing the ctrl key.
>
> Adding the DoubleClickListener is very easy with the method
> addDoubleClickListener from the viewer class.
>
> But how to combine both?
> My idea was to get the pressed key while the event occured, but I
> don't know how to get that information.
>
> Thanks for any advices.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to obtain the literal from a GenFeature?
Next Topic:[CDO] Resource.getContents().remove(Object) unnecessarily loads all elements from database
Goto Forum:
  


Current Time: Thu Sep 26 05:04:45 GMT 2024

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

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

Back to the top