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

Bug 168554

Summary: [WorkbenchParts] editor references not cleaned up for closed projects
Product: [Eclipse Project] Platform Reporter: Karice McIntyre <Karice_McIntyre>
Component: UIAssignee: Paul Webster <pwebster>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, jensseidel, karenfbutzke, pnehrer, remy.suen
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 235160    

Description Karice McIntyre CLA 2006-12-19 10:44:15 EST
3.3 M4
Editor references for files that are in closed projects should be cleaned up when projects are closed, rather than waiting until the editor is activated.

Steps:
-Create a two projects, A and B, each with a few files in them.
-Open editors for one of the files from project A and 1 or 2 of the files from project B.  Ensure the editor that has focus last is a file from project B.
-Shut down eclipse
-Start eclipse (ensure not to activate the editor for the file in ProjectA)
-Close project A
-Ctrl+F6, select editor that is the file from project A.
You get an error dialog that says Resource '/ProjectA' is not open.

Instead of the editor, it would be nice if, on project close, the editor references for files in Project A that are still around are cleaned up, instead of  getting the error dialog when you select the editor for the file from ProjectA.
Comment 1 Jens Seidel CLA 2008-02-08 05:26:15 EST
I do not like that all editor windows keep open but without content when I
close a project. Closing these once a project is closed it prefered.

Of course such closed windows should be reopened at the same position once
the project is opened again.

Comment 2 Remy Suen CLA 2010-11-08 13:44:13 EST

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