Community
Participate
Working Groups
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.
Check in 2.0. The same extension should be used if not entered.
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.