Bug 30005 Can't create linked source folder in new java project wizard [build path]
Build: I20030122 1) Open the new java project wizard 2) Enter a name, hit next 3) Click "Add Folder" on the "Source" tab. -> dialog comes up that doesn't have an option to create a new folder 4) Click cancel. Click "Browse" next to the output folder field -> this dialog allows you to create a new folder (even a linked folder) 5) Click cancel. Finish the wizard. 6) Open the java build path property page 3) Click "Add Folder" on the "Source" tab. -> now the dialog allows you to create a new linked folder. It should allow you to do this from the wizard.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
if (entry.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
			URL javadocLocation= (URL) entry.getAttribute(CPListElement.JAVADOC);
			IPath path= entry.getPath();
			if (entry.getEntryKind() == IClasspathEntry.CPE_VARIABLE) {
				path= JavaCore.getResolvedVariablePath(path);
			}
			if (path != null) {
				JavaUI.setLibraryJavadocLocation(path, javadocLocation);
			}			
		} else if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
			Object[] children= entry.getChildren(false);
			for (int i= 0; i < children.length; i++) {
				CPListElement curr= (CPListElement) children[i];
				configureJavaDoc(curr);
			}
		}
	}
	
	
	public static boolean hasClassfiles(IResource resource) throws CoreException {
		if (resource.isDerived()) { 
			return true;
		}		
		if (resource instanceof IContainer) {
			IResource[] members= ((IContainer) resource).members();
			for (int i= 0; i < members.length; i++) {
				if (hasClassfiles(members[i])) {
					return true;
				}
			}