@UIEventTopic parameter? [message #696667] |
Thu, 14 July 2011 10:31  |
Eclipse User |
|
|
|
Hi
I'm trying to understand how could I use the annotation
I could subscribe to some event using this approach:
eventBroker.subscribe(UIEvents.buildTopic(UIEvents.UIElement.TOPIC,
UIEvents.UIElement.WIDGET), ev5);
and that is working properly and I always receive a Event object in 'ev5' handler.
Now I'm trying to do the same using UIEventTopic annotation. I've used this:
@Inject
void processWindowEvents(
@Optional @UIEventTopic(UIEvents.UIElement.TOPIC) Object event) {
System.out.println(event);
}
Its not seem to be working. It is being called once, but I think by the DI and the event parameter is always null.
I'm doing the right thing?
thanks
Cristiano
|
|
|
|
Powered by
FUDForum. Page generated in 0.04856 seconds