Bug 28510 java build path inconsistency [build path]
20021216 select rt.jar in the package explorer open properties it allows you to set the javadoc location but for source attachment you are sent somewhere else it's inconsistent - on the java build path they both look sort of the same (they sit under the same node in the tree)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
}
			
			classpath[i]= entry.getClasspathEntry();
						
			
			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);
			}
		}	
		monitor.worked(1);
				
		fCurrJProject.setRawClasspath(classpath, outputLocation, new SubProgressMonitor(monitor, 7));		
	}
	
	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;
				}
			}