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) {
|
protected void addToParentInfo(Openable child) {
|
||||||
Openable parent = (Openable) child.getParent();
|
Openable parent = (Openable) child.getParent();
|
||||||
if (parent != null && parent.isOpen()) {
|
if (parent != null && parent.isOpen()) {
|
||||||
CElementInfo info = (CElementInfo)parent.getElementInfo();
|
CElementInfo info = parent.getElementInfo();
|
||||||
info.addChild(child);
|
info.addChild(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -168,6 +168,8 @@ public class DeltaProcessor {
|
||||||
if (element.getElementType() == ICElement.C_PROJECT) {
|
if (element.getElementType() == ICElement.C_PROJECT) {
|
||||||
// treat project closing as removal
|
// treat project closing as removal
|
||||||
elementRemoved(element, delta);
|
elementRemoved(element, delta);
|
||||||
|
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
|
||||||
|
rootInfo.setNonCResources(null);
|
||||||
} else {
|
} else {
|
||||||
fCurrentDelta.closed(element);
|
fCurrentDelta.closed(element);
|
||||||
}
|
}
|
||||||
|
@ -188,6 +190,9 @@ public class DeltaProcessor {
|
||||||
if (hasCNature(delta.getResource())) {
|
if (hasCNature(delta.getResource())) {
|
||||||
elementAdded(element, delta);
|
elementAdded(element, delta);
|
||||||
}
|
}
|
||||||
|
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
|
||||||
|
rootInfo.setNonCResources(null);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fCurrentDelta.opened(element);
|
fCurrentDelta.opened(element);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue