mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 455571 - Unable to rename C/C++ project if project has excluded
source folder entry
This commit is contained in:
parent
509d7cd337
commit
32cdeab66b
1 changed files with 5 additions and 3 deletions
|
@ -172,10 +172,12 @@ public class HeaderFileReferenceAdjuster {
|
||||||
CoreModel coreModel = CoreModel.getDefault();
|
CoreModel coreModel = CoreModel.getDefault();
|
||||||
for (IFile file : affectedFiles) {
|
for (IFile file : affectedFiles) {
|
||||||
ITranslationUnit tu = (ITranslationUnit) coreModel.create(file);
|
ITranslationUnit tu = (ITranslationUnit) coreModel.create(file);
|
||||||
|
if (tu != null) {
|
||||||
if (workingCopyManager.findSharedWorkingCopy(tu) != null)
|
if (workingCopyManager.findSharedWorkingCopy(tu) != null)
|
||||||
continue; // Shared working copies have already been processed.
|
continue; // Shared working copies have already been processed.
|
||||||
addFileChange(tu, changes, checker, progress.newChild(1));
|
addFileChange(tu, changes, checker, progress.newChild(1));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!changes.isEmpty()) {
|
if (!changes.isEmpty()) {
|
||||||
change = new CompositeChange("", changes.toArray(new Change[changes.size()])); //$NON-NLS-1$
|
change = new CompositeChange("", changes.toArray(new Change[changes.size()])); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue