Bug 4167 - Cannot delete then save a file of same name in same location (1GK0E3I)
Summary: Cannot delete then save a file of same name in same location (1GK0E3I)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 23:07 EDT by Karice McIntyre CLA
Modified: 2002-04-30 13:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karice McIntyre CLA 2001-10-10 23:07:10 EDT
This could be a core problem - not sure.
If I have an editor open on a file, dirty the editor, delete the file, 
then go back to editor and try to save the file with the name of the file
I just deleted I get an error.

STEPS:
In the Resource perspective:

*Create a java project called my java project.
*In my java project, create a file called Moo.java.  Save the contents below 
 in the Moo.java editor:


public class Moo {
      private int y;
      public Moo() {
      }
      public void doThis() {
      }
      abstract public void doThat();
      public int getX() {
       return x;
      }
     }

*Type something to dirty the editor (e.g. hit return); do not save
*Select Moo.java in the Nav and delete it
*Click on the editor; it will ask if you want to either save the changes or close the 
 editor without saving.  Choose Save.
*Enter Moo.java as the name of the file and select my java project as the folder.
BUG: You get a dialog that says Could not save file.  Reason: Moo.java does not exist.
NOTES:
	EJP (9/26/2001 12:24:40 PM)
		Does not happen with the DefaultTextEditor.
		The method performSaveAs in implemented in the subclasses of AbstractTextEditor.
		Moving to JDT.
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:14:52 EDT
moved to 'active'
Comment 2 DJ Houghton CLA 2001-10-29 17:35:37 EST
PRODUCT VERSION:
eclipse sdk 135 winnt 4.0

Comment 3 Dirk Baeumer CLA 2002-02-27 08:49:28 EST
Problem still exists in build 20020214
Comment 4 Kai-Uwe Maetzel CLA 2002-04-30 13:30:50 EDT
Build > 20020430.