How to implement IWindowCloseHandler in Eclipse (e4) RCP?
问题 How can I implement IWindowCloseHandler in order to display a MessageDialog before closing the application ? Here is my code : EDIT public class LifeCycle { @PostContextCreate public void postContextCreate() { // TODO start up code here System.out.println("open"); } @ProcessAdditions void processAdditions(MApplication app, EModelService modelService) { WindowCloseHandler closeHandler=new WindowCloseHandler(); MWindow window = (MWindow)modelService.find("uploadcenter.source.trimmedwindow.0",