From fa8febcf9261874159a3d370b389c0ac69ebaba0 Mon Sep 17 00:00:00 2001 From: Ivan Shakhov Date: Mon, 4 May 2020 13:42:48 +0200 Subject: [PATCH] allow customization of node text in UnityExplorer (#1646) --- .../rider/plugins/unity/explorer/UnityExplorerNode.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer/UnityExplorerNode.kt b/rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer/UnityExplorerNode.kt index 06bcc3623f..c8b0363ddb 100644 --- a/rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer/UnityExplorerNode.kt +++ b/rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer/UnityExplorerNode.kt @@ -16,6 +16,7 @@ import com.jetbrains.rider.projectView.ProjectModelViewHost import com.jetbrains.rider.projectView.nodes.* import com.jetbrains.rider.projectView.views.FileSystemNodeBase import com.jetbrains.rider.projectView.views.SolutionViewRootNodeBase +import com.jetbrains.rider.projectView.views.fileSystemExplorer.FileSystemExplorerCustomization import icons.UnityIcons import java.awt.Color import javax.swing.Icon @@ -111,6 +112,10 @@ open class UnityExplorerNode(project: Project, presentation.addText(name, SimpleTextAttributes.REGULAR_ATTRIBUTES) presentation.setIcon(calculateIcon()) + FileSystemExplorerCustomization.getExtensions(myProject).forEach { + it.updateNode(presentation, file, this) + } + // Add additional info for directories val unityExplorer = UnityExplorer.getInstance(myProject) if (virtualFile.isDirectory && unityExplorer.showProjectNames) {