Search in sources :

Example 1 with XInstanceEvaluator

use of com.intellij.xdebugger.evaluation.XInstanceEvaluator in project intellij-community by JetBrains.

the class XDebuggerInstanceTreeCreator method createTree.

@NotNull
@Override
public Tree createTree(@NotNull Pair<XInstanceEvaluator, String> descriptor) {
    final XDebuggerTree tree = new XDebuggerTree(myProject, myProvider, myPosition, XDebuggerActions.INSPECT_TREE_POPUP_GROUP, myMarkers);
    final XValueNodeImpl root = new XValueNodeImpl(tree, null, descriptor.getSecond(), new InstanceEvaluatorTreeRootValue(descriptor.getFirst(), descriptor.getSecond()));
    tree.setRoot(root, false);
    Condition<TreeNode> visibleRootCondition = node -> node.getParent() == root;
    tree.expandNodesOnLoad(visibleRootCondition);
    tree.selectNodeOnLoad(visibleRootCondition);
    return tree;
}
Also used : XValueNodeImpl(com.intellij.xdebugger.impl.ui.tree.nodes.XValueNodeImpl) TreeNode(javax.swing.tree.TreeNode) XDebuggerActions(com.intellij.xdebugger.impl.actions.XDebuggerActions) XDebuggerTree(com.intellij.xdebugger.impl.ui.tree.XDebuggerTree) ResultConsumer(com.intellij.concurrency.ResultConsumer) XDebuggerEditorsProvider(com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider) XSourcePosition(com.intellij.xdebugger.XSourcePosition) XInstanceEvaluator(com.intellij.xdebugger.evaluation.XInstanceEvaluator) com.intellij.xdebugger.frame(com.intellij.xdebugger.frame) Pair(com.intellij.openapi.util.Pair) Project(com.intellij.openapi.project.Project) Tree(com.intellij.ui.treeStructure.Tree) DebuggerTreeCreator(com.intellij.xdebugger.impl.evaluate.quick.common.DebuggerTreeCreator) XValueMarkers(com.intellij.xdebugger.impl.frame.XValueMarkers) NotNull(org.jetbrains.annotations.NotNull) XDebugSession(com.intellij.xdebugger.XDebugSession) Condition(com.intellij.openapi.util.Condition) XDebuggerEvaluator(com.intellij.xdebugger.evaluation.XDebuggerEvaluator) TreeNode(javax.swing.tree.TreeNode) XValueNodeImpl(com.intellij.xdebugger.impl.ui.tree.nodes.XValueNodeImpl) XDebuggerTree(com.intellij.xdebugger.impl.ui.tree.XDebuggerTree) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ResultConsumer (com.intellij.concurrency.ResultConsumer)1 Project (com.intellij.openapi.project.Project)1 Condition (com.intellij.openapi.util.Condition)1 Pair (com.intellij.openapi.util.Pair)1 Tree (com.intellij.ui.treeStructure.Tree)1 XDebugSession (com.intellij.xdebugger.XDebugSession)1 XSourcePosition (com.intellij.xdebugger.XSourcePosition)1 XDebuggerEditorsProvider (com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider)1 XDebuggerEvaluator (com.intellij.xdebugger.evaluation.XDebuggerEvaluator)1 XInstanceEvaluator (com.intellij.xdebugger.evaluation.XInstanceEvaluator)1 com.intellij.xdebugger.frame (com.intellij.xdebugger.frame)1 XDebuggerActions (com.intellij.xdebugger.impl.actions.XDebuggerActions)1 DebuggerTreeCreator (com.intellij.xdebugger.impl.evaluate.quick.common.DebuggerTreeCreator)1 XValueMarkers (com.intellij.xdebugger.impl.frame.XValueMarkers)1 XDebuggerTree (com.intellij.xdebugger.impl.ui.tree.XDebuggerTree)1 XValueNodeImpl (com.intellij.xdebugger.impl.ui.tree.nodes.XValueNodeImpl)1 TreeNode (javax.swing.tree.TreeNode)1 NotNull (org.jetbrains.annotations.NotNull)1