No events received in 4.2.2 [message #1017022] |
Fri, 08 March 2013 11:48  |
Eclipse User |
|
|
|
Hi,
since the update from 4.2.1 to 4.2.2 the Event Broker does not work anymore.
So when I send an event, it is not received with code like:
@Inject
@Optional
void myTopicHandler(final @UIEventTopic(EventTopic.MY_TOPIC) Project project) {
//handle event
}
Is this a bug or does the implementation changed in any (undocumented...) way? This is an absolut showstopper for our project.
Thanks
Norman
|
|
|
|
|
|
Re: No events received in 4.2.2 [message #1017319 is a reply to message #1017299] |
Mon, 11 March 2013 11:13  |
Eclipse User |
|
|
|
I do not inject a dialog. For the sample code I do it just as simple as possible:
public class AboutHandler {
public static final String TOPIC = "about";
@Execute
public void execute(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell,
IEventBroker eventBroker) {
MessageDialog dialog = new MessageDialog(shell, "title", null,
"Message", MessageDialog.INFORMATION, new String[] { "OK" }, 0);
eventBroker.post(TOPIC, dialog);
}
@Inject
@Optional
void projectParsedHandler(final @UIEventTopic(TOPIC) MessageDialog dialog) {
dialog.open();
}
}
The member variable uiSync of the event broker is initialized (from the E4Application, just as you said). But in UIEventObjectSupplier (called by the EventManager) it is not.
|
|
|
Powered by
FUDForum. Page generated in 0.04872 seconds