Project: Eclipse_Platform_UI
Bug 23066 TextEditor performSaveAs doesn't show default path or file name
Reported: 2002-08-31 05:11:13 | Status: resolved fixed

Problem is, dialog.setOriginalFile() is called after dialog.create(), which has already used null value of originalFile. The code should be: SaveAsDialog dialog= new SaveAsDialog(shell); IEditorInput input = getEditorInput(); IFile original= (input instanceof IFileEditorInput) ? ((IFileEditorInput) input).getFile() : null; if (original != null) dialog.setOriginalFile(original); dialog.create();

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/dialogs/SaveAsDialog.java