/** * @see IPackageFragment#getCompilationUnits(WorkingCopyOwner) */ public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUnit[] result = new ICompilationUnit[length]; int index = 0; for (int i = 0; i < length; i++) { ICompilationUnit wc = workingCopies[i]; if (equals(wc.getParent()) && !Util.isExcluded(wc)) { // 59933 - excluded wc shouldn't be answered back result[index++] = wc; } } if (index != length) { System.arraycopy(result, 0, result = new ICompilationUnit[index], 0, index); } return result; } public String getElementName() {
/** * @see IPackageFragment#getCompilationUnits(WorkingCopyOwner) */ public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUnit[] result = new ICompilationUnit[length]; int index = 0; for (int i = 0; i < length; i++) { ICompilationUnit wc = workingCopies[i]; if (equals(wc.getParent()) && !Util.isExcluded(wc)) { // 59933 - excluded wc shouldn't be answered back result[index++] = wc; } } if (index != length) { System.arraycopy(result, 0, result = new ICompilationUnit[index], 0, index); } return result; } public String getElementName() {
/** * @see IPackageFragment#getCompilationUnits(WorkingCopyOwner) */ public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUnit[] result = new ICompilationUnit[length]; int index = 0; for (int i = 0; i < length; i++) { ICompilationUnit wc = workingCopies[i]; if (equals(wc.getParent()) && !Util.isExcluded(wc)) { // 59933 - excluded wc shouldn't be answered back result[index++] = wc; } } if (index != length) { System.arraycopy(result, 0, result = new ICompilationUnit[index], 0, index); } return result; } public String getElementName() {
/** * @see IPackageFragment#getCompilationUnits(WorkingCopyOwner) */ public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUnit[] result = new ICompilationUnit[length]; int index = 0; for (int i = 0; i < length; i++) { ICompilationUnit wc = workingCopies[i]; if (equals(wc.getParent()) && !Util.isExcluded(wc)) { // 59933 - excluded wc shouldn't be answered back result[index++] = wc; } } if (index != length) { System.arraycopy(result, 0, result = new ICompilationUnit[index], 0, index); } return result; } public String getElementName() {
/** * @see IPackageFragment#getCompilationUnits(WorkingCopyOwner) */ public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUnit[] result = new ICompilationUnit[length]; int index = 0; for (int i = 0; i < length; i++) { ICompilationUnit wc = workingCopies[i]; if (equals(wc.getParent()) && !Util.isExcluded(wc)) { // 59933 - excluded wc shouldn't be answered back result[index++] = wc; } } if (index != length) { System.arraycopy(result, 0, result = new ICompilationUnit[index], 0, index); } return result; } public String getElementName() {
/** * @see IPackageFragment#getCompilationUnits(WorkingCopyOwner) */ @Override public ICompilationUnit[] getCompilationUnits(WorkingCopyOwner owner) { ICompilationUnit[] workingCopies = JavaModelManager.getJavaModelManager().getWorkingCopies(owner, false/*don't add primary*/); if (workingCopies == null) return JavaModelManager.NO_WORKING_COPY; int length = workingCopies.length; ICompilationUnit[] result = new ICompilationUnit[length]; int index = 0; for (int i = 0; i < length; i++) { ICompilationUnit wc = workingCopies[i]; if (equals(wc.getParent()) && !Util.isExcluded(wc)) { // 59933 - excluded wc shouldn't be answered back result[index++] = wc; } } if (index != length) { System.arraycopy(result, 0, result = new ICompilationUnit[index], 0, index); } return result; } @Override