Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Forwarding event
Forwarding event [message #458116] Tue, 14 November 2006 08:46
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Plug-in xxx was unable to load class xxx.Application
Next Topic:Plug-In/Feature product?
Goto Forum:
  


Current Time: Sun Oct 26 12:21:32 EDT 2025

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

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

Back to the top