Bug 38863 - "Unable to open editor" error when deleting file associated with open editor instance
Summary: "Unable to open editor" error when deleting file associated with open editor ...
Status: RESOLVED DUPLICATE of bug 38829
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-12 18:05 EDT by Doug Spelce CLA
Modified: 2003-06-16 10:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Spelce CLA 2003-06-12 18:05:01 EDT
Recreation steps:

1) Create a Simple project.
2) Create a Folder in the project, name it 'mydir'.
3) Create a text file in the 'mydir' folder, name it 'file1'.  The Text Editor
for 'file1' is opened automatically and given focus.
4) Create a text file in the 'mydir' folder, name it 'file2'.  The Text Editor
for 'file2' is opened automatically and given focus.
5) Exit Eclipse.
6) Launch Eclipse again, and the editors for 'file1' and 'file2' are opened
automatically.  The editor for 'file2' has focus.
7) In the Navigator view, right click on the 'mydir' folder and select Delete.
8) In the Confirm Delete dialog, click Yes to delete 'mydir'.
9) The editor for 'file2' is closed successfully, but then the "Unable to
Restore Editor" dialog appears, with the message, "Unable to open editors".  
10) Clicking on the Advanced tab of the exception dialog shows the message
"Unable to create editor: file1".  
11) Click OK to close the dialog.  Usually, the editor for 'file2' is closed.

The following message appears in Configuration Details:
"!MESSAGE Unable to restore editor - createElement returned null for input
element factory: org.eclipse.ui.part.FileEditorInputFactory"

Also, it doesn't seem to matter what kind of project (Simple, Java, etc.) or
what type of editor (Text, Java, third-party, etc.) is involved to generate the
error.  However, editors other than the Text Editor seem to remain open on
'file2', after step 8.

In the above scenario, if 'file1' is given focus before step 7, the error does
not occur.
Comment 1 Doug Spelce CLA 2003-06-12 18:13:52 EDT
In step 11), and in the next-to-last paragraph of my desription, I meant to
refer to 'file1' instead of 'file2':

11) Click OK to close the dialog.  Usually, the editor for 'file1' is closed.

-and-

However, editors other than the Text Editor seem to remain open on
'file1', after step 8.
Comment 2 Debbie Wilson CLA 2003-06-16 10:44:43 EDT

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