private static void addExclusionPatterns(CPListElement newEntry, CPListElement[] existing, Set<CPListElement> modifiedEntries) { IPath entryPath= newEntry.getPath(); for (int i= 0; i < existing.length; i++) { CPListElement curr= existing[i]; if (curr.getEntryKind() == IClasspathEntry.CPE_SOURCE) { IPath currPath= curr.getPath(); if (!currPath.equals(entryPath)) { if (currPath.isPrefixOf(entryPath)) { if (addToExclusions(entryPath, curr)) { modifiedEntries.add(curr); } } else if (entryPath.isPrefixOf(currPath) && newEntry.getEntryKind() == IClasspathEntry.CPE_SOURCE) { if (addToExclusions(currPath, newEntry)) { modifiedEntries.add(curr); } } } } } }
private static void addExclusionPatterns(CPListElement newEntry, CPListElement[] existing, Set<CPListElement> modifiedEntries) { IPath entryPath= newEntry.getPath(); for (int i= 0; i < existing.length; i++) { CPListElement curr= existing[i]; if (curr.getEntryKind() == IClasspathEntry.CPE_SOURCE) { IPath currPath= curr.getPath(); if (!currPath.equals(entryPath)) { if (currPath.isPrefixOf(entryPath)) { if (addToExclusions(entryPath, curr)) { modifiedEntries.add(curr); } } else if (entryPath.isPrefixOf(currPath) && newEntry.getEntryKind() == IClasspathEntry.CPE_SOURCE) { if (addToExclusions(currPath, newEntry)) { modifiedEntries.add(curr); } } } } } }
private static void addExclusionPatterns(CPListElement newEntry, CPListElement[] existing, Set modifiedEntries) { IPath entryPath= newEntry.getPath(); for (int i= 0; i < existing.length; i++) { CPListElement curr= existing[i]; if (curr.getEntryKind() == IClasspathEntry.CPE_SOURCE) { IPath currPath= curr.getPath(); if (!currPath.equals(entryPath)) { if (currPath.isPrefixOf(entryPath)) { if (addToExclusions(entryPath, curr)) { modifiedEntries.add(curr); } } else if (entryPath.isPrefixOf(currPath) && newEntry.getEntryKind() == IClasspathEntry.CPE_SOURCE) { if (addToExclusions(currPath, newEntry)) { modifiedEntries.add(curr); } } } } } }