Bug 29755 Attach source does not allow one to select a folder... [build path]
When opening some .class that does not yet have a source attachment eclipse shows a text version of the interface defintion and a button for Attaching source. When pressing this button a window appaer where one can enter the name/location of a folder, zip or jar for the source. There are also a button for choosing it via a file selection dialog and this works fine for zip and jar files - but not for selecting a directory :( Workaround is just to enter the directory manually.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java
}
			
		}
		return status;
	}
	
	/*
	 * Opens a dialog to choose a jar from the file system.
	 */
	private IPath chooseExtJarFile() {
		IPath currPath= new Path(fFileNameField.getText());
		if (currPath.isEmpty()) {
			currPath= fEntry.getPath();
		}		
		if (isVariableEntry()) {
			IPath resolvedPath= getResolvedPath(currPath);
			File initialSelection= resolvedPath != null ? resolvedPath.toFile() : null;
			
			String currVariable= currPath.segment(0);
			JARFileSelectionDialog dialog= new JARFileSelectionDialog(getShell(), false, true);
			dialog.setTitle(NewWizardMessages.getString("SourceAttachmentBlock.extvardialog.title")); 
			dialog.setMessage(NewWizardMessages.getString("SourceAttachmentBlock.extvardialog.description")); 
			dialog.setInput(fFileVariablePath.toFile());
			dialog.setInitialSelection(initialSelection);
			if (dialog.open() == JARFileSelectionDialog.OK) {
				File result= (File) dialog.getResult()[0];
				IPath returnPath= new Path(result.getPath()).makeAbsolute();
				return modifyPath(returnPath, currVariable);
			}
		} else {