Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » "window closing" event?
"window closing" event? [message #649060] Mon, 17 January 2011 13:26 Go to next message
Greg Brown is currently offline Greg Brown
Messages: 16
Registered: December 2010
Junior Member
AWT's Window class provides both "windowClosing" and "windowClosed" events. The former is useful when you want to intercept the close and allow a user to cancel. Does the Shell class provide a similar capability? I only saw ShellListener#windowClosed(), but I was wondering if there might be another way to do it.
Thanks,
Greg
Re: "window closing" event? [message #649071 is a reply to message #649060] Mon, 17 January 2011 13:59 Go to previous messageGo to next message
Greg Brown is currently offline Greg Brown
Messages: 16
Registered: December 2010
Junior Member
Seems as though I may be able to cancel the windowClosed() event by setting the doit property of the event to false. Is this correct?
Re: "window closing" event? [message #649196 is a reply to message #649071] Tue, 18 January 2011 07:09 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
On 2011-01-17 14:59, Greg Brown wrote:
> Seems as though I may be able to cancel the windowClosed() event by
> setting the doit property of the event to false. Is this correct?

I assume you mean the method shellClosed(). And I agree that this looks
like the right event to use for this.

HTH & Greetings from Bremen,

Daniel Krügler
Re: "window closing" event? [message #649256 is a reply to message #649196] Tue, 18 January 2011 12:26 Go to previous message
Greg Brown is currently offline Greg Brown
Messages: 16
Registered: December 2010
Junior Member
Oops, yes - I meant shellClosed(). windowClosed() is the AWT method. Thanks.
Greg
Previous Topic:SWT blocking AWT?
Next Topic:Text Viewer with pagination - the way to go?
Goto Forum:
  


Current Time: Wed Oct 22 12:25:20 GMT 2014

Powered by FUDForum. Page generated in 0.01962 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software