Skip to content

Commit

Permalink
allow customization of node text in UnityExplorer (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
van800 committed May 4, 2020
1 parent e4222ac commit fa8febc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit fa8febc

Please sign in to comment.