I am developing eRCP workbench application using Lotus Expeditor guideline (http://publib.boulder.ibm.com/infocenter/ledoc/v6r11/index.jsp?topic=/com.ibm.rcp.tools.doc.appdev/rcpapps_rcappfordevices.html
I want to ask confirmation message when user close application by closing window.
In plug-in project it is simple to use ApplicationWorkbenchAdvisor which extends WorkbenchAdvisor and overrides preShutdown() method. But in my eRCP application, I only have Activator class.
I tried to use some code in my View class (which extends ViewPart) to handle ShellListener::shellClosed(ShellEvent ev) but not worked.
How should I use WorkbenchAdvisor in my eRCP application ?
Any ways to ask user when they closes application window to close application ?
Any sugestions much appreciated :)
Many thanks in advance.