Bug 22740

Summary: Infinite prompt to close editor
Product: [Eclipse Project] Platform Reporter: John Arthorne <john.arthorne>
Component: TextAssignee: Kai-Uwe Maetzel <kai-uwe_maetzel>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: Kevin_Haaland
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description John Arthorne CLA 2002-08-22 15:36:02 EDT
Build 20020821 (2.0.1 build)

1) Create a simple project
2) Add a file A.java that contains a simple hello world program
3) Use command line javac to create corresponding A.class file
4) Open editor in eclipse on A.class
5) Select project in navigator and delete, including contents

Note: The editor on A.class is still there

6) Click inside the A.class editor

A dialog box appears, saying, "The file has been deleted from the file system. 
This editor will be closed.".

Clicking either Yes, No, or close dialog in that dialog will cause the dialog to
reappear again.  It is impossible to get rid of the dialog, and since it is
modal, you have to kill eclipse to get rid of it.
Comment 1 Kai-Uwe Maetzel CLA 2002-08-23 06:07:13 EDT
Problem comes from a missing call to the editor's close method. Thus, closing 
the dialog causes a shell activation event on which another sanity check is 
performed causing the loop. The problem only appears in editors which do not 
allow for Save As such as the class file editor.

Fix released to R2_0_1 and HEAD.