Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to close a shell after an allowing from a dialog?
How to close a shell after an allowing from a dialog? [message #458469] Thu, 14 July 2005 01:08 Go to next message
augur is currently offline augurFriend
Messages: 25
Registered: July 2009
Junior Member
I want to implement such a process .When I click
the right top close button on a shell,the shell
will pop up a dialog.Only I click 'ok',the shell
dispose,otherwise,it keep open.
I try to add listener to a shell,and implement
the shellClosed() method,but it was not at work.

--
--

--


Thanks in Advance...
Augur, QunShun, ShangHai, China
________________________________________________
__________________________

' If there is one, Knowledge is the "Fountain of
Youth"'
-William E. Taylor, Regular Guy (1952-)
Re: How to close a shell after an allowing from a dialog? [message #458470 is a reply to message #458469] Thu, 14 July 2005 02:29 Go to previous messageGo to next message
augur is currently offline augurFriend
Messages: 25
Registered: July 2009
Junior Member
I have read the content linked with
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet99.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

I used JFace framework.I inserted the same code
into configureShell() method.It still doesn't
work though the code can do well as SWT.What's
the next step?

--
--

--


Thanks in Advance...
Augur, QunShun, ShangHai, China
________________________________________________
__________________________

' If there is one, Knowledge is the "Fountain of
Youth"'
-William E. Taylor, Regular Guy (1952-)
Re: How to close a shell after an allowing from a dialog? [message #458629 is a reply to message #458470] Mon, 18 July 2005 03:22 Go to previous message
Adrian is currently offline AdrianFriend
Messages: 11
Registered: July 2009
Junior Member
Try implement canHandleShellCloseEvent() of
org.eclipse.jface.window.ApplicationWindow
Previous Topic:MVC question
Next Topic:How to implement a GIF animation in SWT?
Goto Forum:
  


Current Time: Wed Oct 28 18:55:22 GMT 2020

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

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

Back to the top