i'm trying to create a new toolWindow and inside it build a tree, something like:
| |- filename1-path
| |- filename2-path
| |- filename3-path
What i want is to build a plugin so that when you are working on a set of files you add them and associate them with a topic (in the tree example, b or c).
Then, i could navigate throug the topics and double click a filename3-path and open that file.
I already create the tree but i'm using JTree and DefaultMutableTreeNode classes so the layout is not the same has Intellij.
Can anyone tell me how to have the layout as intellij and how do i associate mouse clicks to the nodes so that the file is opened when i double click it?
Thanks in advance