ConsoleView doesn't work as node in SimpleTree
I want to have hyperlinked stack trace as node of my tree. Therefore I implemented TreeCellRenderer interface where in getTreeCellRendererComponent() method I am using ConsoleView when needed. But i am always getting empty console no matter what I was doing. I was trying to scroll to 0 position, wrap component in JPanel, JBScrollPane etc. I've tried to use ConsoleView in other places and it was working but not in SimpleTree.
Here is the code https://pastebin.com/dcaN5FfD
Can you help please to make this work as expected?

Please sign in to leave a comment.
Actually, stacktrace has many rows by its nature, so probably it should be mapped to many sibling nodes (many rows in the tree with equal height). These rows could be represented (decorated in renderer) as links and listen to mouse clicks as you need.
Is there any other class that can do it automatically?
In com.intellij.ui.treeStructure.Tree default renderer (NodeRenderer) extends SimpleColoredComponent and you can apply SimpleTextAttributes.LINK_ATTRIBUTES when render parts of stacktrace.