I am building a new plug-in with UI like TODO ToolWindow. i.e. my ToolWindow will contain a tree with items that user can group by modules/packages/etc. One way to implement it is to use plain swing classes and write own code to handle this

On the other hand, I hate to reinvent the wheel and this functionality is already present in IDEA all over the place (TODO, Structure View, Changes, Find, etc). Also, openapi.jar contains com.intellij.ide.util.treeView.smartTree package that "Provides the model for a generic tree control with actions for custom sorting, filtering and grouping."

Is there a way to use this SmartTree in a plug-in? Or (if it is not possible) may be there are other components in OpenAPI that can help building such UI?

Please sign in to leave a comment.