Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
679 B
2
Indexable
Never
private void calculate(XValueNodeImpl node) {
    XDebuggerTree tree = node.getTree();
    int childerenCount = node.getChildCount();
    tree.addTreeListener(new XDebuggerTreeListener() {
      @Override
      public void childrenLoaded(@NotNull XDebuggerTreeNode node,
                                 @NotNull List<? extends XValueContainerNode<?>> children,
                                 boolean last) {
        XDebuggerTreeListener.super.childrenLoaded(node, children, last);
        for (XValueContainerNode<?> child : children) {
          calculate((XValueNodeImpl)child);
          System.out.println(((XValueNodeImpl)child).getName());
        }
      }
    });
  }