Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » JFace close(Close a JFace application from a button)
JFace close [message #777475] Tue, 10 January 2012 15:14 Go to next message
Bill Brandley is currently offline Bill BrandleyFriend
Messages: 12
Registered: October 2011
Junior Member
I created a JFace application containing a "Close" button. In the "mouseUp" event, I placed:


I modified main() thusly:

if(Display.getCurrent() != null) {

Is this a reasonable way to clode a JFace application from a button?

Re: JFace close [message #777557 is a reply to message #777475] Tue, 10 January 2012 17:37 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member

Konstantin Scheglov,
Google, Inc.
Re: JFace close [message #777584 is a reply to message #777557] Tue, 10 January 2012 19:02 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 975
Registered: July 2009
Location: Boston, MA
Senior Member
BTW, general questions about JFace should be posted to the Eclipse JFace forum.

Likewise, general questions about SWT should be posted to the Eclipse SWT forum.
Previous Topic:Databinding for an Enumeration
Next Topic:DataBinding - Enumerations
Goto Forum:

Current Time: Thu Jun 21 03:13:30 GMT 2018

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

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

Back to the top