Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Annotatoin @UIEventHandler and @EventHandler
Annotatoin @UIEventHandler and @EventHandler [message #575656] Fri, 07 May 2010 13:06 Go to next message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 159
Registered: August 2009
Senior Member
Hi,

I am playing around with the EclipseCon example of the e4 client.
So far I resolved all the errors and recreated the UI. I am able to start the client and see a basic UI however no images, since e.g. in the WebCamView the redraw method is never called because I had to remove the @UIEventHandler methods.

Apparently the @UIEventHandler and @EventHandler methods are gone. Is there a substitute for those annotations? A workaround maybe? Something I missed?

Thanks for any help.

Regards,
Artur
Re: Annotatoin @UIEventHandler and @EventHandler [message #575685 is a reply to message #575656] Fri, 07 May 2010 15:51 Go to previous message
Oleg Besedin is currently offline Oleg BesedinFriend
Messages: 41
Registered: July 2009
Member
They mutated into @UIEventTopic and @EventTopic located in the
"org.eclipse.e4.core.di.extensions" bunde. A class that wants to receive an
event creates an optional injected value with @[UI]EventTopic; no special
method or interface is required.

The sender can either use EventAdmin directly or use helper methods on the
EventUtils class.

- Example of usage in the JUnits: InjectionEventTest
- Example of usage in the photo demo:
Receiver example: Location#setInput(@UIEventTopic)
Sender example: ExifTable: EventUtils.post()

There was a lot churn in this area; I hope this helps a bit.

Sincerely,
Oleg Besedin

"Artur Kronenberg" <addur737@yahoo.de> wrote in message
news:hs138h$df5$1@build.eclipse.org...
> Hi,
>
> I am playing around with the EclipseCon example of the e4 client. So far I
> resolved all the errors and recreated the UI. I am able to start the
> client and see a basic UI however no images, since e.g. in the WebCamView
> the redraw method is never called because I had to remove the
> @UIEventHandler methods.
>
> Apparently the @UIEventHandler and @EventHandler methods are gone. Is
> there a substitute for those annotations? A workaround maybe? Something I
> missed?
>
> Thanks for any help.
>
> Regards,
> Artur
Previous Topic:E4 worckbench designer on mac OSX
Next Topic:XWT. Composite with XWT UI.
Goto Forum:
  


Current Time: Thu Apr 25 13:06:41 GMT 2024

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

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

Back to the top