Bug 7785 - SaveAs Forgets the file type
Summary: SaveAs Forgets the file type
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Ian Petersen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-16 12:43 EST by Duong Nguyen CLA
Modified: 2002-01-21 11:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duong Nguyen CLA 2002-01-16 12:43:34 EST
1) Open an existing java file
2) Modify it (I moved an existing class)
3) Click the SaveAs icon, next to the Save Icon

A dialog will come up.

4) Browse for a valid container location
5) Type the filename, but ignore the extension, which isn't requested.
6) Click Ok.

Observe that the Navigator has added the file in the specified location, but 
with no file extension shown. The icon has also changed from the parent java 
file icon to a generic file icon. The file is for all intents and purposes now 
a generic file, as opening it will prove--the file is opened as text.

Expected Behaviour:

The file should be saved with the same extension as the original unless 
explicitly changed.
Comment 1 Nick Edgar CLA 2002-01-16 23:04:24 EST
Check in 2.0.
The same extension should be used if not entered.
Comment 2 Ian Petersen CLA 2002-01-21 11:03:52 EST
If the user types a file name with no extension, and the SaveAsDialog was 
provided with an initial file name that has an extension, then okPressed() will 
append the initial extension to the user-supplied file name before closing down.