| IEventBroker inside of the LifeCycle? [message #1008635] |
Wed, 13 February 2013 06:19  |
Alex Kipling Messages: 212 Registered: July 2012 |
Senior Member |
|
|
Hello!
I tried to use the IEventBroker inside of the LifeCycleManader, to know about
But my trigger is never executed when the application windows is shown.
Why doesn't it work? Any Ideas?
@PostConstruct
void postConstruct(final IEclipseContext context) {
IEventBroker broker = context.get(IEventBroker.class);
broker.subscribe(UIEvents.UILifeCycle.BRINGTOTOP, new EventHandler() {
@Override
public void handleEvent(Event event) {
Shell shell = context.get(Shell.class);
System.out.println("Bringtop");
}
});
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01739 seconds