Bug 82541 [Dialogs] SaveAsDialog should better handle closed projects
I20050111-0800 The SaveAsDialog show closed projects and even enables the OK button. This makes no sense since we cannot save the file into a closed projects. An error dialog is the result. I suggest to disable the OK button if a closed project is selected.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/SaveAsDialog.java
private static final String DIALOG_SETTINGS_SECTION = "SaveAsDialogSettings"; 
	
	private IFile originalFile = null;
    private String originalName = null;
    private IPath result;
    
    private ResourceAndContainerGroup resourceGroup;
    private Button okButton;
    /**
     * Image for title area
     */
    private Image dlgTitleImage = null;
    /**
     * Creates a new Save As dialog for no specific file.
     *
     * @param parentShell the parent shell
     */
    public SaveAsDialog(Shell parentShell) {
        super(parentShell);
        setShellStyle(getShellStyle() | SWT.RESIZE);
    }
    /* (non-Javadoc)
     * Method declared in Window.