Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363920

Summary: The save on close ignores the "NO"
Product: [Eclipse Project] Platform Reporter: Yigal Spinner <yigal.spinner>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3    
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Yigal Spinner CLA 2011-11-16 10:03:27 EST
Build Identifier: 20110218-0911

In the class org.eclipse.ui.internal.SaveablesList#preCloseParts()
When prompting to the user that the part is closing and asking what to do.
The code only checks if the user pressed cancel.  However if the user clocks on NO it will save the information since it is not cancel.
Need to either change the code of show in the message box only "Yes" and "Cancel"

Reproducible: Always

Steps to Reproduce:
1. Create any editor (EMF model edit is the easy one)
2. Run the project and create a model and save it.
3. Open the file and change the values with out saving the file.
4. click on X to close the editor.
5. a dialog box comes up with "Yes", "No" and "Cancel"
6. Press the "No" option.
7.  The changes are saved.