mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
1.1 KiB
1.1 KiB
Project View
Changing the project view nodes representation.
Product Help: Project tool window
Decorating Project View Nodes
Plugin authors can modify the representation of nodes in the project view. This is used to, e.g., change the icon of module nodes to reflect the module type or add URL and server path to Python Jupyter directories as location strings.
To modify project view node representations, implement
ProjectViewNodeDecorator
and register it as com.intellij.projectViewNodeDecorator
extension.
From the interface only the decorate()
method that modifies ProjectViewNode
s needs to be implemented.
If you need to update your node representation on certain events, please use
ProjectView.update()
.