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

Bug 52279

Summary: [EditorMgmt] Closing project exception
Product: [Eclipse Project] Platform Reporter: Elwin <elwin_ho>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3 CC: aleherb+eclipse, daniel_megert
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Elwin CLA 2004-02-17 14:01:01 EST
Hi,
I am working on an editor project. The problem (bug) that I found is:

1. Launch Eclipse, Create a project with 2 text files, and open these 2 files 
in editor area
2. (Keep those two files open) and exit Eclipse
3. Launch Eclipse again, (don’t touch the Editor). Close the project. 

You will always get an exception for that. 

Thanks
Elwin
Comment 1 Dani Megert CLA 2004-02-18 06:27:19 EST
Can be reproduced using 3.0 M7: the first (already active) editor gets correctly
closed but then the workbench tries to activate the editor for the closed resource.

The editor manager should not to restore editors for which the editor input
doesn't exist anymore.

Note: Please include the build id and the exception when filing a bug.
Comment 2 Douglas Pollock CLA 2004-07-15 15:50:40 EDT
I cannot reproduce this bug on Linux-GTK+ with text files or Java files.  I'm 
going to close this as "WORKSFORME".  Please re-open if you still see this 
problem.... 
Comment 3 Elwin CLA 2004-10-13 17:15:18 EDT
This problem still happens in Eclipse 3.01 in Windows 2000.
It looks like same as bug #40795
https://bugs.eclipse.org/bugs/show_bug.cgi?id=40795

Let me know, if you need more information

Thanks
Elwin
Comment 4 Michael Van Meekeren CLA 2006-04-21 13:19:00 EDT
Moving Dougs bugs
Comment 5 Anton Leherbauer CLA 2006-04-26 05:57:49 EDT
I think this is a duplicate of bug 41431.
The problem happens on windows only if an editor is open 
for a resource which is going to be deleted/closed and
the editor has not yet been restored/realized from a previous session. 
AFAIK, on Linux, editors are always restored/realized on startup (not sure about other platforms), therefore it cannot happen there.
Whether you actually get an exception when the editor is being restored with the invalid resource depends on the editor's document provider. The default TextFileDocumentProvider appears to handle this case rather gracefully.
Comment 6 Susan McCourt CLA 2009-07-09 19:03:48 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 7 Boris Bokowski CLA 2009-11-17 13:05:43 EST
Remy is now responsible for watching the [EditorMgmt] component area.
Comment 8 Dani Megert CLA 2009-12-16 02:39:39 EST

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