KT-7245 HTML Markup in toolwindow caption

#KT-7245 Fixed
This commit is contained in:
Nikolay Krasko
2015-04-06 14:12:25 +03:00
parent fbb567c11a
commit a77aae8789
@@ -28,6 +28,7 @@ import org.jetbrains.kotlin.asJava.getRepresentativeLightMethod
import com.intellij.psi.PsiMethod
import com.intellij.psi.ElementDescriptionUtil
import com.intellij.refactoring.util.RefactoringDescriptionLocation
import com.intellij.usageView.UsageViewLongNameLocation
import org.jetbrains.kotlin.psi.JetDeclaration
import org.jetbrains.kotlin.asJava.unwrapped
@@ -57,7 +58,7 @@ class KotlinOverrideHierarchyBrowser(
override fun getContentDisplayName(typeName: String, element: PsiElement): String? {
val targetElement = element.unwrapped
if (targetElement is JetDeclaration) {
return ElementDescriptionUtil.getElementDescription(targetElement, RefactoringDescriptionLocation.WITHOUT_PARENT)
return ElementDescriptionUtil.getElementDescription(targetElement, UsageViewLongNameLocation.INSTANCE)
}
return super.getContentDisplayName(typeName, element)
}