Skip to content

Commit

Permalink
Merged branch idea243.release into idea243.x
Browse files Browse the repository at this point in the history
  • Loading branch information
builduser committed Dec 23, 2024
2 parents fa45599 + 843ffcb commit f58c5e3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.jetbrains.sbt.project

import com.intellij.ide.projectView.PresentationData
import com.intellij.openapi.externalSystem.model.project.ModuleData
import com.intellij.openapi.externalSystem.model.project.{ModuleData, ModuleDependencyData}
import com.intellij.openapi.externalSystem.model.{DataNode, Key, ProjectSystemId}
import com.intellij.openapi.externalSystem.view.{ExternalProjectsView, ExternalSystemNode, ExternalSystemViewContributor, ModuleNode}
import com.intellij.util.SmartList
Expand All @@ -22,6 +22,14 @@ class SbtViewContributor extends ExternalSystemViewContributor {

override def getKeys: util.List[Key[_]] = keys.asJava

override def getDisplayName(node: DataNode[_]): String =
node.getData match {
case moduleDependencyData: ModuleDependencyData =>
val target = moduleDependencyData.getTarget
target.getInternalName
case _ => super.getDisplayName(node)
}

override def createNodes(externalProjectsView: ExternalProjectsView,
dataNodes: MultiMap[Key[_], DataNode[_]]): util.List[ExternalSystemNode[_]] = {

Expand Down

0 comments on commit f58c5e3

Please sign in to comment.