|Prompting before closing Stopped working [message #1017116]
||Sat, 09 March 2013 13:47
| AppleJus Mising name
Registered: July 2010
Thank you for your kind help. I am experiencing a small and bizarre issue regarding prompting a user if he wants to close a shell or not, before it actually closes.
I am using a shell "SWT.Close" listener, in which I am using a "MessageDialog.openQuestion()" function with an if condition and a "event.doit = true"
if the user choose "YES" and a "event.doit = false" otherwise...
This code should prompt the user to choose whether to close the shell or not upon pressing the X button of the shell. What is happening now is that the shell is closing BEFORE the dialog shows... Regardless of the answer chosen the shell has already closed...
The same code used to work in much earlier versions of eclipse as I remember. Now I am using Eclipse 4.2 Juno (Version: 4.2.0 - Build id: I20120608-1400)
I tried to look how to solve this on my own, but I really ran out of ideas.
Can anyone help?
Powered by FUDForum
. Page generated in 0.18725 seconds