Bug 168554 - [WorkbenchParts] editor references not cleaned up for closed projects
Summary: [WorkbenchParts] editor references not cleaned up for closed projects
Status: CLOSED DUPLICATE of bug 41431
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 235160
  Show dependency tree
 
Reported: 2006-12-19 10:44 EST by Karice McIntyre CLA
Modified: 2010-11-08 13:44 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***