|
|
|
Re: No events received in 4.2.2 [message #1017299 is a reply to message #1017290] |
Mon, 11 March 2013 14:32 |
Eclipse User |
|
|
|
The UISynchronizsr is set by E4Application on the application/workbench context. How have you obtained the context that you're injecting your dialog with? You can't just use a context created by EclipseContextFactory. Trace the context hierarchy upwards and trace its parent pointer to figure out where it's rooted from.
Brian.
|
|
|
Re: No events received in 4.2.2 [message #1017319 is a reply to message #1017299] |
Mon, 11 March 2013 15:13 |
Norman Wenzel Messages: 3 Registered: March 2013 |
Junior Member |
|
|
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.03230 seconds