mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
2004-08-18 Alain Magloire
The DeltaProcessor should update the sourceRoot also if sourceRoot == ICProject * model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
This commit is contained in:
parent
d56b250e27
commit
1d70c5bb43
2 changed files with 22 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-08-18 Alain Magloire
|
||||
|
||||
The DeltaProcessor should update the sourceRoot also if
|
||||
sourceRoot == ICProject
|
||||
|
||||
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
|
||||
|
||||
2004-08-18 Chris Wiebe
|
||||
|
||||
fix for bug #71353
|
||||
|
|
|
@ -464,9 +464,23 @@ public class DeltaProcessor {
|
|||
((CModelInfo)info).setNonCResources(null);
|
||||
fCurrentDelta.addResourceDelta(delta);
|
||||
return;
|
||||
case ICElement.C_PROJECT:
|
||||
case ICElement.C_PROJECT: {
|
||||
((CProjectInfo)info).setNonCResources(null);
|
||||
// deal with project == sourceroot. For that case the parent could have been the sourceroot
|
||||
// so we must update the sourceroot nonCResource array also.
|
||||
ICProject cproject = (ICProject)parent;
|
||||
ISourceRoot[] roots = cproject.getAllSourceRoots();
|
||||
for (int i = 0; i < roots.length; i++) {
|
||||
IResource r = roots[i].getResource();
|
||||
if (r instanceof IProject) {
|
||||
CElementInfo cinfo = (CElementInfo) CModelManager.getDefault().peekAtInfo(roots[i]);
|
||||
if (cinfo instanceof CContainerInfo) {
|
||||
((CContainerInfo)cinfo).setNonCResources(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ICElement.C_CCONTAINER:
|
||||
((CContainerInfo)info).setNonCResources(null);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue