Community
Participate
Working Groups
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.
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.
*** This bug has been marked as a duplicate of 38829 ***