|
|
|
Re: Swing desktop execClosing problem [message #1150116 is a reply to message #1149907] |
Tue, 22 October 2013 14:51 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
Hi Berin,
I have analyzed your problem:
The Exit menu does:
@Override
public void execAction() throws ProcessingException {
ClientSyncJob.getCurrentSession(ClientSession.class).stopSession();
}
The Closing Box does:
(org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop.P_UIFacade.fireDesktopClosingFromUI())
@Override
public void fireDesktopClosingFromUI() {
setOpenedInternal(false);
ClientSyncJob.getCurrentSession().stopSession();
}
From what I see: setOpenedInternal(false) is wrong (or it should be done after stopSession()).
If you take it one step further, it seems to me that the AbstractDesktop#isOpened() is for nothing.
In Swing we use the WindowConstants#DO_NOTHING_ON_CLOSE constant (seems correct to me). When we come from the UI, the Desktop is still available...
Can you open a bug?
In the bug, indicate if you need a backport on an older version of Scout (3.9 or 3.8).
If should be possible to hack a workarround with your own UI-Facade. Tell me if you want indication to do so.
I hope it helps.
[Updated on: Tue, 22 October 2013 14:51] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04552 seconds