public CPJavaProject createWorkingCopy() { List<CPListElement> newList= new ArrayList<>(fCPListElements.size()); for (Iterator<CPListElement> iterator= fCPListElements.iterator(); iterator.hasNext();) { CPListElement element= iterator.next(); newList.add(element.copy()); } return new CPJavaProject(fJavaProject, newList, fDefaultOutputLocation); }
public CPJavaProject createWorkingCopy() { List<CPListElement> newList= new ArrayList<>(fCPListElements.size()); for (Iterator<CPListElement> iterator= fCPListElements.iterator(); iterator.hasNext();) { CPListElement element= iterator.next(); newList.add(element.copy()); } return new CPJavaProject(fJavaProject, newList, fDefaultOutputLocation); }
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, fDefaultOutputLocation); }
public CPListElement copy() { CPListElement result= new CPListElement(); result.fProject= fProject; result.fEntryKind= fEntryKind; result.fPath= fPath; result.fOrginalPath= fOrginalPath; result.fResource= fResource; result.fIsExported= fIsExported; result.fIsMissing= fIsMissing; result.fParentContainer= fParentContainer; result.fCachedEntry= null; result.fChildren= new ArrayList<>(fChildren.size()); for (Iterator<Object> iterator= fChildren.iterator(); iterator.hasNext();) { Object child= iterator.next(); if (child instanceof CPListElement) { result.fChildren.add(((CPListElement)child).copy()); } else { result.fChildren.add(((CPListElementAttribute)child).copy()); } } result.fLinkTarget= fLinkTarget; result.fOrginalLinkTarget= fOrginalLinkTarget; return result; }
public CPListElement copy() { CPListElement result= new CPListElement(); result.fProject= fProject; result.fEntryKind= fEntryKind; result.fPath= fPath; result.fOrginalPath= fOrginalPath; result.fResource= fResource; result.fIsExported= fIsExported; result.fIsMissing= fIsMissing; result.fParentContainer= fParentContainer; result.fCachedEntry= null; result.fChildren= new ArrayList(fChildren.size()); for (Iterator iterator= fChildren.iterator(); iterator.hasNext();) { Object child= iterator.next(); if (child instanceof CPListElement) { result.fChildren.add(((CPListElement)child).copy()); } else { result.fChildren.add(((CPListElementAttribute)child).copy()); } } result.fLinkTarget= fLinkTarget; result.fOrginalLinkTarget= fOrginalLinkTarget; return result; }
public CPListElement copy() { CPListElement result= new CPListElement(); result.fProject= fProject; result.fEntryKind= fEntryKind; result.fPath= fPath; result.fOrginalPath= fOrginalPath; result.fResource= fResource; result.fIsExported= fIsExported; result.fIsMissing= fIsMissing; result.fParentContainer= fParentContainer; result.fCachedEntry= null; result.fChildren= new ArrayList<>(fChildren.size()); for (Iterator<Object> iterator= fChildren.iterator(); iterator.hasNext();) { Object child= iterator.next(); if (child instanceof CPListElement) { result.fChildren.add(((CPListElement)child).copy()); } else { result.fChildren.add(((CPListElementAttribute)child).copy()); } } result.fLinkTarget= fLinkTarget; result.fOrginalLinkTarget= fOrginalLinkTarget; return result; }