|
Re: Changing Behavior of Default Window Buttons [message #464302 is a reply to message #464296] |
Mon, 21 November 2005 08:58 |
Eclipse User |
|
|
|
Originally posted by: friederich.kupzog.de
Hi,
attach a sehllListener to your shell and listen for shellClosed event.
In the listener, set event.doit = false. Then you can execute your own
code and finally close the shell with shell.close().
Hope that helped,
Friederich
zinc wrote:
> Hi,
> Is there a way to change the behavior of default window buttons? Like
> in the shell, can I override the default behavior of the X (in windows)
> close button, and instead make it perform some action (like display a
> confirmation dialog box and prompt to save data) before closing?
>
> If so, how?
>
> Thanks.
>
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
|
|
|
|
|
|
Re: Actually Problem... [message #464370 is a reply to message #464329] |
Tue, 22 November 2005 09:16 |
Eclipse User |
|
|
|
Originally posted by: friederich.kupzog.de
Sorry Zinc for the bad suggestion with using shell.close() without any
additional flags....
Stefan Langer wrote:
> This causes an infinite loop since shell.close will reinform your
> shelllistener.
>
> You should add a flag to your listener that prevents it from reexecuting
> if it has been executed.
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
|
|
|
Powered by
FUDForum. Page generated in 0.03126 seconds