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 is currently offline Lars VogelFriend
Messages: 1049
Registered: July 2009
Senior Member

Override the IWindowCloseHandler. See Modifying the Eclipse context for an example.
Previous Topic:Eclipse RCP update from indigo-SR2 to juno-SR1
Next Topic:How to integrate a 3.x-Plugins in an E4 workbench model
Goto Forum:

Current Time: Fri Oct 09 17:47:14 GMT 2015

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

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