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:
parent
b1ffc262c2
commit
0892796cd1
1 changed files with 11 additions and 11 deletions
|
@ -123,18 +123,18 @@ public class CContentProvider extends BaseCElementContentProvider implements ITr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element instanceof ITranslationUnit ||
|
if (kind == ICElementDelta.CHANGED) {
|
||||||
element instanceof IBinary || element instanceof IArchive) {
|
if ((flags & ICElementDelta.F_BINARY_PARSER_CHANGED) != 0) {
|
||||||
if (kind == ICElementDelta.CHANGED) {
|
// 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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue