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
}
				buf.append(curr);
				nAdded++;
			}
		} catch (CoreException e) {
			JavaPlugin.logIgnoringNotPresentException(e);
		} 
		return buf.toString();
	}
	
	
	private IJavaElement[] getSourceElements() {
		ArrayList res= new ArrayList();
		Iterator checkedElements= fInputGroup.getAllCheckedListItems();
		while (checkedElements.hasNext()) {
			Object element= checkedElements.next();
			if (element instanceof ICompilationUnit) {
				ICompilationUnit unit= (ICompilationUnit) element;
				IPackageFragment pack= (IPackageFragment) unit.getParent();
				if (fInputGroup.isTreeItemGreyChecked(pack) || pack.isDefaultPackage()) {
					res.add(unit);
				}
			}
		}
		Iterator checkedTreeElements= fInputGroup.getAllCheckedTreeItems().iterator();
		while (checkedTreeElements.hasNext()) {
			Object element= checkedTreeElements.next();
			if (element instanceof IPackageFragment) {
				IPackageFragment pack= (IPackageFragment) element;
				if (!fInputGroup.isTreeItemGreyChecked(pack) && !pack.isDefaultPackage()) {