mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Reset the CModel nonCResource
This commit is contained in:
parent
76e58ecb8a
commit
55aa4e1abf
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue