1
0
Fork 0
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:
Alain Magloire 2004-08-20 20:21:49 +00:00
parent d56b250e27
commit 1d70c5bb43
2 changed files with 22 additions and 1 deletions

View file

@ -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

View file

@ -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;