|
|
|
Re: Halting a dispose [message #456358 is a reply to message #456138] |
Wed, 01 June 2005 09:48 |
Eclipse User |
|
|
|
Originally posted by: bogdan.nowhere.com.pl
Max Rotvel wrote:
> No, but if want to prevent your app from closing you can add a
> ShellListener to your Shell and show your "Are you sure?" dialog in the
> shellClosed() method:
> shell.addShellListener(new ShellAdapter()
> {
> public void shellClosed(ShellEvent e)
> {
> if (["Are you sure?" dialog returns 'No'])
> e.doit = false;
> }
> });
I'm trying this with my app on Pocket PC but it doesn't work well.
When I'm closing shell programaticaly: shell.close(), I can see dialog and
denied app closing,
but when I'm closing dialog with close button from title bar dialog
doesn't show and application is halting - all shells disapear and no clean
up is done.?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03070 seconds