| Forwarding event [message #458116] |
Tue, 14 November 2006 08:46 |
Eclipse User |
|
|
|
Hello all,
I'm new to RCP and I'm having some troubles with event handling.
I had a pure SWT application and I'm migrating it to RCP. In this
application, I kept the focus on one widget only.
The main idea is that all keys pressed should be sent to one text
widget. In my SWT implementation, all widgets set the focus to this text
once they received it so all keyEvents were sent to the text widget.
In order to mainting the good architecture proposed by RCP, I would like
to create a listener that would forward my KeyEvents to this specific
widget.
Is there a way to do it? Could someone send me a snippet?
Thanks a lot,
Hugo Corbucci
|
|
|
| Re: Forwarding event [message #458118 is a reply to message #458116] |
Tue, 14 November 2006 08:30  |
Eclipse User |
|
|
|
Hi,
I don't see a possibility to add listeners to all controls in your an
RCP-Application easily. I'd rather say that you could register an
Display.addFilter(); and forward you events to the right control.
Tom
Hugo Corbucci schrieb:
> Hello all,
> I'm new to RCP and I'm having some troubles with event handling.
> I had a pure SWT application and I'm migrating it to RCP. In this
> application, I kept the focus on one widget only.
> The main idea is that all keys pressed should be sent to one text
> widget. In my SWT implementation, all widgets set the focus to this text
> once they received it so all keyEvents were sent to the text widget.
> In order to mainting the good architecture proposed by RCP, I would like
> to create a listener that would forward my KeyEvents to this specific
> widget.
> Is there a way to do it? Could someone send me a snippet?
>
> Thanks a lot,
> Hugo Corbucci
|
|
|
Powered by
FUDForum. Page generated in 0.04194 seconds