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
} else if (originalName != null) {
			resourceGroup.setResource(originalName);
		}
        setDialogComplete(validatePage());
    }
    /* (non-Javadoc)
     * Method declared on Dialog.
     */
    protected void okPressed() {
        
        IPath path = resourceGroup.getContainerFullPath().append(
                resourceGroup.getResource());
         
         
        
        if (path.getFileExtension() == null) {
            if (originalFile != null && originalFile.getFileExtension() != null) {
				path = path.addFileExtension(originalFile.getFileExtension());
			} else if (originalName != null) {
                int pos = originalName.lastIndexOf('.');
                if (++pos > 0 && pos < originalName.length()) {
					path = path.addFileExtension(originalName.substring(pos));
				}
            }
        }
        
        IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
        if (file.exists()) {
            String[] buttons = new String[] { IDialogConstants.YES_LABEL,
                    IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL };