本文整理汇总了Java中com.intellij.debugger.engine.DebugProcessImpl.getDefaultRenderer方法的典型用法代码示例。如果您正苦于以下问题:Java DebugProcessImpl.getDefaultRenderer方法的具体用法?Java DebugProcessImpl.getDefaultRenderer怎么用?Java DebugProcessImpl.getDefaultRenderer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.debugger.engine.DebugProcessImpl
的用法示例。
在下文中一共展示了DebugProcessImpl.getDefaultRenderer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildChildren
import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
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 = getLastChildrenRenderer(parentDescriptor);
if (renderer == null || childrenValue == null || !renderer.isApplicable(childrenValue.type())) {
renderer = DebugProcessImpl.getDefaultRenderer(childrenValue != null ? childrenValue.type() : null);
parentDescriptor.putUserData(LAST_CHILDREN_RENDERER, renderer);
}
renderer.buildChildren(childrenValue, builder, evaluationContext);
}
catch (final EvaluateException e) {
List<DebuggerTreeNode> errorChildren = new ArrayList<DebuggerTreeNode>();
errorChildren.add(nodeManager.createMessageNode(DebuggerBundle.message("error.unable.to.evaluate.expression") + " " + e.getMessage()));
builder.setChildren(errorChildren);
}
}
示例2: getChildrenRenderer
import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
private static NodeRenderer getChildrenRenderer(Value childrenValue, ValueDescriptor parentDescriptor) {
NodeRenderer renderer = getLastChildrenRenderer(parentDescriptor);
if (renderer == null || childrenValue == null || !renderer.isApplicable(childrenValue.type())) {
renderer = DebugProcessImpl.getDefaultRenderer(childrenValue != null ? childrenValue.type() : null);
setPreferableChildrenRenderer(parentDescriptor, renderer);
}
return renderer;
}
示例3: getChildrenRenderer
import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
private static NodeRenderer getChildrenRenderer(Value childrenValue, ValueDescriptor parentDescriptor)
{
NodeRenderer renderer = getLastChildrenRenderer(parentDescriptor);
if(renderer == null || childrenValue == null || !renderer.isApplicable(childrenValue.type()))
{
renderer = DebugProcessImpl.getDefaultRenderer(childrenValue != null ? childrenValue.type() : null);
setPreferableChildrenRenderer(parentDescriptor, renderer);
}
return renderer;
}