Bug 15544 JavaDoc wizard includes non-selected packages
If you have two source folders: src and test, and tell the JavaDoc wizard to use only the packages in src, it will include any matching packages from the test source folder. Eg. If I have select the package 'ca.beq.tundra' in the 'src' folder, the generated JavaDocs will also include classes from the 'ca.beq.tundra' package in the 'test' folder. Using integration build 0502.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocTreeWizardPage.java
protected void setTreeChecked(
		IJavaElement[] sourceElements,
		IJavaProject project)
		throws JavaModelException {
		if (project == null)
			return;
		if (sourceElements.length < 1)
			fInputGroup.initialCheckTreeItem(project);
		else {
			for (int i = 0; i < sourceElements.length; i++) {
				IJavaElement curr = sourceElements[i];
				if (curr instanceof ICompilationUnit) {
					fInputGroup.initialCheckListItem(curr);
				} else if (curr instanceof IPackageFragment) {
					fInputGroup.initialCheckTreeItem(curr);
				} else if(curr instanceof IJavaProject) {
					
					if(sourceElements.length==1)	
						fInputGroup.initialCheckTreeItem(curr);
				} else if (curr instanceof IPackageFragmentRoot) {
						IPackageFragmentRoot root= (IPackageFragmentRoot)curr;
						if(!root.isArchive())		
							fInputGroup.initialCheckTreeItem(curr);
				}	
			}
		}
	}
	private String getSourcePath(IJavaProject project) {
		StringBuffer buf= new StringBuffer();
		try {