1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bugzilla 256326.

+2 votes for this now that we are in the RC2 Rampdown phase.

Randy
This commit is contained in:
Randy Rohrbach 2008-11-25 16:06:15 +00:00
parent bad2646c4a
commit d078289a24

View file

@ -54,6 +54,19 @@ public class ExpressionVMProviderModelProxyStrategy extends DefaultVMModelProxyS
IExpressionVMNode matchingNode = getExpressionVMProvider().findNodeToParseExpression(node, expression);
if (matchingNode != null && !matchingNode.equals(node)) {
flags = flags | getNodeDeltaFlagsForExpression(matchingNode, expression, event);
} else {
// Check the child nodes of this expression node for additional
// delta flags.
for (IVMNode childNode : getVMProvider().getChildVMNodes(node)) {
if (!childNode.equals(node)) {
int childNodeDeltaFlags = getDeltaFlags(childNode, null, event);
if ((childNodeDeltaFlags & IModelDelta.CONTENT) != 0) {
childNodeDeltaFlags &= ~IModelDelta.CONTENT;
childNodeDeltaFlags |= IModelDelta.STATE;
}
flags |= childNodeDeltaFlags;
}
}
}
return flags;
}