use of com.intellij.debugger.ui.tree.NodeManager in project intellij-community by JetBrains.
the class ExpressionChildrenRenderer method buildChildren.
public void buildChildren(final Value value, final ChildrenBuilder builder, final EvaluationContext evaluationContext) {
final NodeManager nodeManager = builder.getNodeManager();
try {
final ValueDescriptor parentDescriptor = builder.getParentDescriptor();
final Value childrenValue = evaluateChildren(evaluationContext.createEvaluationContext(value), parentDescriptor);
NodeRenderer renderer = getChildrenRenderer(childrenValue, parentDescriptor);
renderer.buildChildren(childrenValue, builder, evaluationContext);
} catch (final EvaluateException e) {
List<DebuggerTreeNode> errorChildren = new ArrayList<>();
errorChildren.add(nodeManager.createMessageNode(DebuggerBundle.message("error.unable.to.evaluate.expression") + " " + e.getMessage()));
builder.setChildren(errorChildren);
}
}
Aggregations