| DoubleClick with key pressing [message #910901] |
Mon, 10 September 2012 11:32  |
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  |
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02067 seconds