Show additional info to file in the project tree view
Answered
I am trying to figure out what APIs I have to use to show additional data for a file in the project tree view. I see such details for the Project item and others too, like the SDKs. I'm looking for something like the IconProvider extension but for item titles. Does this exist?
The example screenshot shows the project item with the path in the file system. I want to add details to a directory item.
Please sign in to leave a comment.
Hi,
You can replace existing nodes with a custom node implementation by using:
com.intellij.ide.projectView.TreeStructureProvider
See also:
https://plugins.jetbrains.com/docs/intellij/tree-structure-view.html
Thank you Karol, the TSP is a little overkill. I found the ProjectViewNodeDecorator extension. It works perfectly. In the decorate method I call the setLocationString() and it adds the grayed text.