1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Catch binar parser changes events.

This commit is contained in:
Alain Magloire 2002-11-27 04:50:20 +00:00
parent b1ffc262c2
commit 0892796cd1

View file

@ -123,18 +123,18 @@ public class CContentProvider extends BaseCElementContentProvider implements ITr
} }
} }
if (element instanceof ITranslationUnit ||
element instanceof IBinary || element instanceof IArchive) {
if (kind == ICElementDelta.CHANGED) { if (kind == ICElementDelta.CHANGED) {
if ((flags & ICElementDelta.F_BINARY_PARSER_CHANGED) != 0) {
// throw the towel and do a full refresh of the affected C project.
postRefresh(element.getCProject());
return;
} else if (element instanceof ITranslationUnit ||
element instanceof IBinary || element instanceof IArchive) {
postRefresh(element); postRefresh(element);
return; return;
} }
}
//if (isBuildPathChange(delta)) { }
// throw the towel and do a full refresh of the affected C project.
//postRefresh(element.getCProject());
//}
ICElementDelta[] affectedChildren= delta.getAffectedChildren(); ICElementDelta[] affectedChildren= delta.getAffectedChildren();
for (int i= 0; i < affectedChildren.length; i++) { for (int i= 0; i < affectedChildren.length; i++) {
@ -142,9 +142,9 @@ public class CContentProvider extends BaseCElementContentProvider implements ITr
} }
// Make sure that containers are updated. // Make sure that containers are updated.
if (element instanceof ICRoot) { //if (element instanceof ICRoot) {
updateContainer((ICRoot)element); // updateContainer((ICRoot)element);
} //}
} }
private void updateContainer(ICRoot root) { private void updateContainer(ICRoot root) {