Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlain Magloire2004-03-30 15:46:29 -0500
committerAlain Magloire2004-03-30 15:46:29 -0500
commit55aa4e1abf2a514bb2868e769812a207a8cbf716 (patch)
treeef81a54d1595ec74422cf6d0add0300ccb27a3ca /core
parent76e58ecb8a2828ca6c00d96bc16be4784ffb7a12 (diff)
downloadorg.eclipse.cdt-55aa4e1abf2a514bb2868e769812a207a8cbf716.tar.gz
org.eclipse.cdt-55aa4e1abf2a514bb2868e769812a207a8cbf716.tar.xz
org.eclipse.cdt-55aa4e1abf2a514bb2868e769812a207a8cbf716.zip
Reset the CModel nonCResource
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
index 2eb2db0564..8ff7f6f0bd 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
@@ -122,7 +122,7 @@ public class DeltaProcessor {
protected void addToParentInfo(Openable child) {
Openable parent = (Openable) child.getParent();
if (parent != null && parent.isOpen()) {
- CElementInfo info = (CElementInfo)parent.getElementInfo();
+ CElementInfo info = parent.getElementInfo();
info.addChild(child);
}
}
@@ -168,6 +168,8 @@ public class DeltaProcessor {
if (element.getElementType() == ICElement.C_PROJECT) {
// treat project closing as removal
elementRemoved(element, delta);
+ CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
+ rootInfo.setNonCResources(null);
} else {
fCurrentDelta.closed(element);
}
@@ -188,6 +190,9 @@ public class DeltaProcessor {
if (hasCNature(delta.getResource())) {
elementAdded(element, delta);
}
+ CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
+ rootInfo.setNonCResources(null);
+
} else {
fCurrentDelta.opened(element);
}

Back to the top