Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » shell.close() disposes the Shell instance
shell.close() disposes the Shell instance [message #452975] Tue, 29 March 2005 14:06 Go to next message
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Why shell.close() disposes the Shell instance ?

Thanks,
Helene
Re: shell.close() disposes the Shell instance [message #452979 is a reply to message #452975] Tue, 29 March 2005 14:47 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Helene,

It's doing what the javadoc describes (pasted below). If you want to make a
Shell go away but then show it again later then you can use
setVisible(boolean).

/**
* Requests that the window manager close the receiver in
* the same way it would be closed when the user clicks on
* the "close box" or performs some other platform specific
* key or mouse combination that indicates the window
* should be removed.

Grant

"hortiz" <hortiz@xxx.com> wrote in message
news:79057963693a277aea632c025bc14420$1@www.eclipse.org...
> Why shell.close() disposes the Shell instance ?
>
> Thanks,
> Helene
>
>
Re: shell.close() disposes the Shell instance [message #452981 is a reply to message #452979] Tue, 29 March 2005 14:56 Go to previous messageGo to next message
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Thanks fro the answer Grant.

Then why does the close method have been created for the Shell class, the
dispose one was sufficient ?
Re: shell.close() disposes the Shell instance [message #453036 is a reply to message #452981] Wed, 30 March 2005 00:56 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Shell.close() requests that a Shell be closed in the same manner as if the
user had clicked on the close box. Applications can cancel this using the
SWT.Close event.

"hortiz" <hortiz@xxx.com> wrote in message
news:4244704fefab7e6ae68c0362638cd2ed$1@www.eclipse.org...
> Thanks fro the answer Grant.
>
> Then why does the close method have been created for the Shell class, the
> dispose one was sufficient ?
>
Previous Topic:Image on a button
Next Topic:Really could use some help on this Image/TreeItem problem
Goto Forum:
  


Current Time: Tue Apr 23 08:49:21 GMT 2024

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

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

Back to the top