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

Bug 366122

Summary: Error clicking tab of a file that doesn't exist anymore
Product: [Eclipse Project] Platform Reporter: Alessio Pollero <alessio.pollero>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: alessio.pollero, daniel_megert
Version: 3.7.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Eclipse error log none

Description Alessio Pollero CLA 2011-12-08 17:12:58 EST
Build Identifier: M20110909-1335

After deleting a project that had file opened when you click on a file tab to close the file you will get an exception in a MessageBox.

The exception says : 

Ignored attempt to add saveable that was already registered

Reproducible: Always

Steps to Reproduce:
1.Open some file of a project A 
2.Delete the entire A project from the Package Explorer
3.Try to close the opened file related to the project A
Comment 1 Alessio Pollero CLA 2011-12-08 17:13:47 EST
Created attachment 208128 [details]
Eclipse error log
Comment 2 Dani Megert CLA 2011-12-09 04:51:22 EST
Alessio, I think your steps are incomplete. I suspect that you did something like this:

1. opened editor(s)
2. exit Eclipse
3. start Eclipse
4. delete the project
5. click on an editor tab of a deleted file
==> exceptions.
Comment 3 Dani Megert CLA 2011-12-09 04:53:19 EST

*** This bug has been marked as a duplicate of bug 186977 ***
Comment 4 Alessio Pollero CLA 2011-12-09 15:08:04 EST
Steps to reproduce :

1) Open Eclipse, create a project and some java files inside it.
2) Open some files in the Java Editor 
3) Close eclipse
4) Open Eclipse (you will find your files opened as you leave it when previously closed eclipse)
5) Go in Package explorer 
6) Select the project which that opened files belongs.
7) Delete the project 


I've reproduced this error on Mac OS X Lion, Windows 7, Debian 6 Squeeze .


Eclipse SDK

Version: 3.7.1
Build id: M20110909-1335
Comment 5 Dani Megert CLA 2011-12-14 05:31:13 EST
(In reply to comment #4)
> Steps to reproduce :
> 
> 1) Open Eclipse, create a project and some java files inside it.
> 2) Open some files in the Java Editor 
> 3) Close eclipse
> 4) Open Eclipse (you will find your files opened as you leave it when
> previously closed eclipse)
> 5) Go in Package explorer 
> 6) Select the project which that opened files belongs.
> 7) Delete the project 
> 
> 
> I've reproduced this error on Mac OS X Lion, Windows 7, Debian 6 Squeeze .

After (auto-) closing the active editor, the workbench tries to activate an editor whose file is also part of the deleted project. And this what bug 186977 covers.