I want to give the user a warning before the application closes. This works fine if I implement the method Desktop.execClosing() and the user uses the menu File->Exit. If the user uses the close button from the title bar the application just closes without warning.
Is there a way to make the message also works when the user uses the close button?
I have tried to open a message box in execClosing:
!ENTRY org.eclipse.scout.rt.client 2 0 2013-10-22 10:31:04.893
!MESSAGE org.eclipse.scout.rt.client.ui.messagebox.MessageBox.startMessageBox(MessageBox.java:419) there is no desktop or the desktop has not yet been opened in the ui, default answer is CANCEL
From what I can tell, execClosing is called, but Scout isn't capable to open a UI Component like a message box (see log). Can you confirm that you also see this Log entry.
I need to check how you can implement your use-case.
Thanks for the bug Bertin. We will try to schedule this bug for the Kepler SR2 release and appreciate if you will verify the bugfix when it is fixed.
We will try to fix bugs that are critical to our adopters up to a SR2 release. Depending on your options and priorities you can then ask for bug fixes via paid services for old Scout releases or upgrade your applications to a more recent Scout version.
Please remember that this practice is not specific to Eclipse Scout but reflects the definition of the community based maintenance (defined until the SR2) of Eclipse projects participating in the release train.