Display project tree in settings Follow
Hello.
I am new in IDEA plugins dev. Maybe my question was discussed many of times but I can't find directly answer.
I need to display project tree at my settings panel
Tree must be thomething like
Is there something standart way to display project tree (I need only folders without files)? Maybe some API classes that build tree according to project object.
Or I need to get project structure and manually create JTree?
Links to examples would be great!.
Thanks.
Please sign in to leave a comment.
com.intellij.openapi.fileChooser.FileSystemTreeFactory#createFileSystemTree should work for this. You can limit display to folders only via FileChooserDescriptor.
Thanks Yann! It is working. But i can't understand how to display only project tree, not all my file system.
Is there any approach to limit this tree to show only project structure?
I didn't try it myself, but com.intellij.openapi.fileChooser.FileChooserDescriptor#getRoots looks like it should work
Yann, thanks. It's works!