Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Confirm exit dialog when pressing `X` button
Confirm exit dialog when pressing `X` button [message #970739] Sun, 04 November 2012 08:52 Go to next message
Jim Jone is currently offline Jim JoneFriend
Messages: 11
Registered: October 2012
Junior Member
I am trying to find how I can show the confirmation dialog when the user presses `X` button in the application to confirm if the user really wants to exit.
Could not find any code example for this. Just some hints about WorkbenchWindowAdvisor but have no idea how I could use this class.
Is there any example code please for this case?
Re: Confirm exit dialog when pressing `X` button [message #971948 is a reply to message #970739] Mon, 05 November 2012 08:36 Go to previous message
Lars Vogel Unavailable until 15 August 2016 is currently offline Lars Vogel Unavailable until 15 August 2016Friend
Messages: 1051
Registered: July 2009
Senior Member

Override the IWindowCloseHandler. See Modifying the Eclipse context for an example.
Previous Topic:Use workspace of eclipse 4.2 from eclipse 4.3
Next Topic:Making a fixed perspective in an e4 model?
Goto Forum:

Current Time: Wed Apr 25 18:47:39 GMT 2018

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

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