if (fInputGroup.getGreyCheckedTreeItems(pack) || pack.isDefaultPackage()) {
if (fInputGroup.isTreeItemGreyChecked(pack) || pack.isDefaultPackage()) {
	private List getPackagenames() {							Iterator checkedElements= fInputGroup.getAllCheckedListItems();			List list= new ArrayList();			this.resources= new ArrayList();			while (checkedElements.hasNext()) {				Object element = checkedElements.next();				if (element instanceof ICompilationUnit) {					ICompilationUnit unit = (ICompilationUnit) element;					IJavaElement el = unit.getParent();					if (el instanceof IPackageFragment) {						IPackageFragment pack= (IPackageFragment)el;						if (fInputGroup.getGreyCheckedTreeItems(pack) || pack.isDefaultPackage()) {							try {								IResource re = unit.getCorrespondingResource();								//Create a list of resources for which Javadoc will be generated								this.resources.add(re);								IPath p = re.getLocation();								String qn = p.toOSString();								list.add(qn);							} catch (JavaModelException e) {								JavaPlugin.log(e);							}						}					}				}			}			Object[] checkedTreeElements= fInputGroup.getAllCheckedTreeItems().toArray();			for (int i= 0; i < checkedTreeElements.length; i++) {				Object element= checkedTreeElements[i];				if (element instanceof IPackageFragment) {					IPackageFragment pack= (IPackageFragment) element;					if (!fInputGroup.getGreyCheckedTreeItems(pack) && !pack.isDefaultPackage()) {												try {							ICompilationUnit[] units= pack.getCompilationUnits();							for (int j = 0; j < units.length; j++) {								ICompilationUnit un= units[j];								IResource re= un.getCorrespondingResource();								resources.add(re);							}						} catch(JavaModelException e) {							JavaPlugin.log(e);						}																		String en= pack.getElementName();						list.add(en);					}				}			}						return list;	}