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 11:32 Go to next message
John M. is currently offline John M.
Messages: 158
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 11:54 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 24530
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.
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: Sun May 19 14:42:36 EDT 2013

Powered by FUDForum. Page generated in 0.02067 seconds