Lines 467-476
Link Here
|
467 |
|
467 |
|
468 |
// Update package statement in compilation unit if needed |
468 |
// Update package statement in compilation unit if needed |
469 |
if (!newFrag.getElementName().equals(source.getElementName())) { // if package has been renamed, update the compilation units |
469 |
if (!newFrag.getElementName().equals(source.getElementName())) { // if package has been renamed, update the compilation units |
|
|
470 |
char[][] inclusionPatterns = ((PackageFragmentRoot)root).fullInclusionPatternChars(); |
471 |
char[][] exclusionPatterns = ((PackageFragmentRoot)root).fullExclusionPatternChars(); |
470 |
for (int i = 0; i < resources.length; i++) { |
472 |
for (int i = 0; i < resources.length; i++) { |
471 |
if (resources[i].getName().endsWith(SUFFIX_STRING_java)) { |
473 |
if (resources[i].getName().endsWith(SUFFIX_STRING_java)) { |
472 |
// we only consider potential compilation units |
474 |
// we only consider potential compilation units |
473 |
ICompilationUnit cu = newFrag.getCompilationUnit(resources[i].getName()); |
475 |
ICompilationUnit cu = newFrag.getCompilationUnit(resources[i].getName()); |
|
|
476 |
if (Util.isExcluded(cu.getPath(), inclusionPatterns, exclusionPatterns, false/*not a folder*/)) continue; |
474 |
IDOMCompilationUnit domCU = fFactory.createCompilationUnit(cu.getSource(), cu.getElementName()); |
477 |
IDOMCompilationUnit domCU = fFactory.createCompilationUnit(cu.getSource(), cu.getElementName()); |
475 |
if (domCU != null) { |
478 |
if (domCU != null) { |
476 |
updatePackageStatement(domCU, newFragName); |
479 |
updatePackageStatement(domCU, newFragName); |