Bug 2398

Summary: Strange behaviour deleting a project with unsaved changes (1GEYHSF)
Product: [Eclipse Project] Platform Reporter: Kevin Haaland <Kevin_Haaland>
Component: UIAssignee: Nick Edgar <n.a.edgar>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 Keywords: usability
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Windows All   
Whiteboard:

Description Kevin Haaland CLA 2001-10-10 22:35:39 EDT
1) create a new generic project 'MyProject' in the Navigator
2) create a new file 'MyFile' in the project  (a text editor will pop up)
3) edit the file but don't save it
4) select 'MyFile' and delete it

At this point the file is deleted, the editor is still open however.
I am not sure if this is the expected behaviour but I would think the user would assume
changes would be lost when deleting the file so closing the editor(s) with changes
should be ok.  An editor without changes is closed properly when its file is deleted.

Follow up problem:
5) close or delete ALL your projects
6) close the open editor of 'MyFile

You will be prompted to save changes, if you click 'yes' you will not have any projects available
to save the file to so you will have to cancel and lose changes.  This problem would not exist if
editors were closed properly - the user shouldn't be asked to save changes to a 'deleted' file.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 18:25:31 EST
PRODUCT VERSION:
119-jdk

Comment 2 Nick Edgar CLA 2002-01-22 22:15:31 EST
See also bug 2399
Comment 3 Nick Edgar CLA 2002-04-03 16:25:24 EST
It now prompts to save changes when editor is activated.