use of com.intellij.xdebugger.impl.ui.tree.nodes.XDebuggerTreeNode in project intellij-community by JetBrains.
the class XNewWatchAction method perform.
@Override
protected void perform(@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) {
XDebuggerTreeNode root = tree.getRoot();
if (root instanceof WatchesRootNode) {
final WatchesRootNode watchesRoot = (WatchesRootNode) root;
watchesRoot.addNewWatch();
}
}
use of com.intellij.xdebugger.impl.ui.tree.nodes.XDebuggerTreeNode in project intellij-community by JetBrains.
the class XDebuggerTreeState method addChildren.
private void addChildren(final XDebuggerTree tree, final NodeInfo nodeInfo, final XDebuggerTreeNode treeNode) {
if (tree.isExpanded(treeNode.getPath())) {
List<? extends XDebuggerTreeNode> children = treeNode.getLoadedChildren();
nodeInfo.myExpanded = true;
for (XDebuggerTreeNode child : children) {
TreePath path = child.getPath();
Rectangle bounds = tree.getPathBounds(path);
if (bounds != null) {
Rectangle treeVisibleRect = tree.getParent() instanceof JViewport ? ((JViewport) tree.getParent()).getViewRect() : tree.getVisibleRect();
if (treeVisibleRect.contains(bounds)) {
myLastVisibleNodeRect = bounds;
}
}
NodeInfo childInfo = createNode(child, tree.isPathSelected(path));
if (childInfo != null) {
nodeInfo.addChild(childInfo);
addChildren(tree, childInfo, child);
}
}
}
}
use of com.intellij.xdebugger.impl.ui.tree.nodes.XDebuggerTreeNode in project android by JetBrains.
the class BasicNativeDebuggerTest method debuggerTreeRootToChildrenTexts.
@NotNull
private static String[] debuggerTreeRootToChildrenTexts(XDebuggerTreeNode treeRoot) {
List<? extends TreeNode> children = treeRoot.getChildren();
String[] childrenTexts = new String[children.size()];
int i = 0;
for (TreeNode child : children) {
childrenTexts[i] = ((XDebuggerTreeNode) child).getText().toString();
++i;
}
return childrenTexts;
}
use of com.intellij.xdebugger.impl.ui.tree.nodes.XDebuggerTreeNode in project android by JetBrains.
the class BasicNativeDebuggerTest method verifyVariablesAtBreakpoint.
private boolean verifyVariablesAtBreakpoint(String[] expectedVariablePatterns, String debugConfigName) {
DebugToolWindowFixture debugToolWindowFixture = new DebugToolWindowFixture(guiTest.ideFrame());
final ExecutionToolWindowFixture.ContentFixture contentFixture = debugToolWindowFixture.findContent(debugConfigName);
contentFixture.clickDebuggerTreeRoot();
Wait.seconds(1).expecting("debugger tree to appear").until(() -> contentFixture.getDebuggerTreeRoot() != null);
// Get the debugger tree and print it.
XDebuggerTreeNode debuggerTreeRoot = contentFixture.getDebuggerTreeRoot();
if (debuggerTreeRoot == null) {
return false;
}
List<String> unmatchedPatterns = getUnmatchedTerminalVariableValues(expectedVariablePatterns, debuggerTreeRoot);
return unmatchedPatterns.isEmpty();
}
Aggregations