public CPJavaProject createWorkingCopy() { List newList = new ArrayList(fCPListElements.size()); for (Iterator iterator = fCPListElements.iterator(); iterator.hasNext(); ) { CPListElement element = (CPListElement) iterator.next(); newList.add(element.copy()); } return new CPJavaProject(newList); }
public IIncludePathEntry[] getIncludePathEntries() { IIncludePathEntry[] result = new IIncludePathEntry[fCPListElements.size()]; int i = 0; for (Iterator iterator = fCPListElements.iterator(); iterator.hasNext(); ) { CPListElement element = (CPListElement) iterator.next(); result[i] = element.getClasspathEntry(); i++; } return result; }