Community
Participate
Working Groups
steps: launch Eclipse, then under menu "Window", choose "Preference", then go to General -> Startup and Shutdown, check the checkbox "Confirm exit when closing last window", then click "OK" on the dialog box. Open any file in editor. then click the "File" menu, then click "Exit" item, there will be no prompt to prompt user to exit eclipse, but if you click "close" button on window top right corner, there will have prompt.
AFAIK that's deliberate ... File>Exit is exit the application, and has never required the confirmation prompt. Confirm exit on closing last window is for clicking on the 'X'. Now I can see why that might be a bit confusing, but I don't want a confirmation dialog with I select File>Exit (if you get that far, it's not an accident you really did want to exit). PW
(In reply to comment #1) > AFAIK that's deliberate ... File>Exit is exit the application, and has never > required the confirmation prompt. > > Confirm exit on closing last window is for clicking on the 'X'. I think so too. This is completely in line with WorkbenchWindowAdvisor's preWindowShellClose() method. The SDK's advisor prompts the dialog in its own implementation of preWindowShellClose(). However, the action created by ActionFactory.QUIT will simply shut down the workbench without going through this method (this is spec'ed behaviour in preWindowShellClose()'s javadoc) and hence, does not prompt the user about anything. http://help.eclipse.org/stable/nftopic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/application/WorkbenchWindowAdvisor.html#preWindowShellClose() I suggest closing as WONTFIX.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.