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

Bug 334902

Summary: [EditorMgmt] Preference to not prompt when same file is opened elsewhere not honoured when closing second workbench window
Product: [Eclipse Project] Platform Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3    
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Remy Suen CLA 2011-01-20 10:32:17 EST
M20110119-0834

1. Open a file in the workspace.
2. Make it dirty.
3. Window > New Window
4. Open the same file in the second window.
5. Close that editor. You will be prompted, click 'Cancel'.
6. Window > Preferences > General > Editors
7. Uncheck 'Prompt to save on close even if still open elsewhere' > OK
8. Close the editor. It will close without prompting as expected.
9. Reopen the same file in the second window.
10. Now try to close the second window, you will be prompted about the dirty part.
Comment 1 Remy Suen CLA 2011-01-31 09:00:12 EST
This seems to be because step 8 is a close request whereas step 10 is a save all request. Hence, the fact that the part is being closed is not considered.
Comment 2 Remy Suen CLA 2011-01-31 12:11:50 EST

*** This bug has been marked as a duplicate of bug 169947 ***