UI: Show file name instead of text fragment in element selection popup

This commit is contained in:
Alexey Sedunov
2015-02-25 18:22:07 +03:00
parent 8a42d50d65
commit 6a25cd663e
@@ -338,6 +338,7 @@ public fun chooseContainerElement<T>(
private fun PsiElement.renderDeclaration(): String? {
val descriptor = when {
this is JetFile -> getName()
this is JetElement -> analyze()[BindingContext.DECLARATION_TO_DESCRIPTOR, this]
this is PsiMember -> getJavaMemberDescriptor()
else -> null