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

Bug 346220

Summary: [EditorMgmt] Closing a project doesnot close the unsaved files opened in the editor
Product: [Eclipse Project] Platform Reporter: Harish Garapati <harish.garapati>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3 CC: loskutov, prakash, pwebster, remy.suen, sptaszkiewicz
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Harish Garapati CLA 2011-05-18 07:26:17 EDT
Build Identifier: I20100608-0911

When a project is closed which has unsaved files opened in the editor, the unsaved files are not closed and the files are left in the dirty mode, if in the Save Resources dialog Deselect All button is clicked. The expected behavior is the files should be closed in the editor and the files should not be in the unsaved state.


Reproducible: Always

Steps to Reproduce:
1.Run eclipse platform 3.6
2.Create a project.
3.Create two files in the project.
4.Make the two files dirty by modifying the files and by not saving them.
5. Do not close the files opened in the editor and now close the project.
6. A Save Resource dialog will be opened with the unsaved files listed and selected.
7. Now click on Deselect All and then on Ok button.
8. Notice that the files are still open in the editor in dirty mode and the project is closed.
Comment 1 Prakash Rangaraj CLA 2011-05-18 07:52:47 EDT
> 4.Make the two files dirty by modifying the files and by not saving them.

   What files are you creating and what editor are you using to edit them?
Comment 2 Prakash Rangaraj CLA 2011-05-18 07:54:48 EDT
(In reply to comment #1)
> > 4.Make the two files dirty by modifying the files and by not saving them.
> 
>    What files are you creating and what editor are you using to edit them?

 Ok, this happens with plain text editors as well.

Remy,

    Does this comes under Editor Mgmt?
Comment 3 Remy Suen CLA 2011-05-18 07:56:15 EDT
(In reply to comment #2)
> Remy,
> 
>     Does this comes under Editor Mgmt?

Don't know. I'll look at it anyway...
Comment 4 Szymon Ptaszkiewicz CLA 2012-12-22 15:32:47 EST

*** This bug has been marked as a duplicate of bug 41431 ***
Comment 5 Andrey Loskutov CLA 2015-02-10 16:51:08 EST
This is not the dup of bug 41431, it is a dup of bug 458266

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