Bug 22740 - Infinite prompt to close editor
Summary: Infinite prompt to close editor
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-22 15:36 EDT by John Arthorne CLA
Modified: 2002-08-23 06:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.