fPackageEntries= new ArrayList(20 + nEntries); for (int i= 0; i < nEntries; i++) { PackageEntry entry= new PackageEntry(preferenceOrder[i], i); fPackageEntries.add(entry); }
PackageEntry curr= null; for (int i= 0; i < decls.length; i++) { String packName= Signature.getQualifier(decls[i].getElementName()); if (curr == null || !packName.equals(curr.getName())) { curr= new PackageEntry(packName, -1); fPackageEntries.add(curr); } curr.add(decls[i]); }
	public ImportsStructure(ICompilationUnit cu, String[] preferenceOrder, int importThreshold) {		fCompilationUnit= cu;		int nEntries= preferenceOrder.length;				fPackageEntries= new ArrayList(20 + nEntries);		for (int i= 0; i < nEntries; i++) {			PackageEntry entry= new PackageEntry(preferenceOrder[i], i);			fPackageEntries.add(entry);		}							fImportOnDemandThreshold= importThreshold;		fReplaceExistingImports= true;	}	