1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
This commit is contained in:
David Inglis 2003-11-06 18:53:26 +00:00
parent 91f05a8d02
commit 927ed83c4e

View file

@ -61,7 +61,9 @@ public class DeltaProcessor {
ICElement parent = manager.create(resource.getParent());
// Probably it was deleted, find it
if (parent instanceof IParent) {
ICElement[] children = ((CElement)parent).getElementInfo().getChildren();
ICElement[] children;
if ( CModelManager.getDefault().peekAtInfo(parent) != null ) {
children = ((CElement)parent).getElementInfo().getChildren();
for (int i = 0; i < children.length; i++) {
IResource res = children[i].getResource();
if (res != null && res.equals(resource)) {
@ -69,6 +71,7 @@ public class DeltaProcessor {
break;
}
}
}
// BUG 36424:
// The Binary may only be visible in the BinaryContainers
if (celement == null) {
@ -380,12 +383,15 @@ public class DeltaProcessor {
elementDelta.addResourceDelta(delta);
}
if (parent instanceof CContainer) {
// if info not created yet no need to null NonCResources...
if (CModelManager.getDefault().peekAtInfo(parent) != null) {
CElementInfo info = ((CContainer)parent).getElementInfo();
if (info instanceof CContainerInfo) {
((CContainerInfo)info).setNonCResources(null);
}
}
}
}
/*
* Update the current delta (ie. add/remove/change the given element) and update the