mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
further imporovements for https://bugs.eclipse.org/bugs/show_bug.cgi?id=45736
This commit is contained in:
parent
91f05a8d02
commit
927ed83c4e
1 changed files with 15 additions and 9 deletions
|
@ -61,12 +61,15 @@ public class DeltaProcessor {
|
||||||
ICElement parent = manager.create(resource.getParent());
|
ICElement parent = manager.create(resource.getParent());
|
||||||
// Probably it was deleted, find it
|
// Probably it was deleted, find it
|
||||||
if (parent instanceof IParent) {
|
if (parent instanceof IParent) {
|
||||||
ICElement[] children = ((CElement)parent).getElementInfo().getChildren();
|
ICElement[] children;
|
||||||
for (int i = 0; i < children.length; i++) {
|
if ( CModelManager.getDefault().peekAtInfo(parent) != null ) {
|
||||||
IResource res = children[i].getResource();
|
children = ((CElement)parent).getElementInfo().getChildren();
|
||||||
if (res != null && res.equals(resource)) {
|
for (int i = 0; i < children.length; i++) {
|
||||||
celement = children[i];
|
IResource res = children[i].getResource();
|
||||||
break;
|
if (res != null && res.equals(resource)) {
|
||||||
|
celement = children[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// BUG 36424:
|
// BUG 36424:
|
||||||
|
@ -380,9 +383,12 @@ public class DeltaProcessor {
|
||||||
elementDelta.addResourceDelta(delta);
|
elementDelta.addResourceDelta(delta);
|
||||||
}
|
}
|
||||||
if (parent instanceof CContainer) {
|
if (parent instanceof CContainer) {
|
||||||
CElementInfo info = ((CContainer)parent).getElementInfo();
|
// if info not created yet no need to null NonCResources...
|
||||||
if (info instanceof CContainerInfo) {
|
if (CModelManager.getDefault().peekAtInfo(parent) != null) {
|
||||||
((CContainerInfo)info).setNonCResources(null);
|
CElementInfo info = ((CContainer)parent).getElementInfo();
|
||||||
|
if (info instanceof CContainerInfo) {
|
||||||
|
((CContainerInfo)info).setNonCResources(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue