mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-48863 - IAE: SymbolPresentationUtil.getSymbolPresentableText
This commit is contained in:
@@ -102,9 +102,18 @@ public class ByteCodeViewerManager extends DockablePopupManager<ByteCodeViewerCo
|
||||
if (!StringUtil.isEmpty(byteCode)) {
|
||||
component.setText(byteCode, element);
|
||||
} else {
|
||||
PsiClass containingClass = getContainingClass(element);
|
||||
PsiFile containingFile = element.getContainingFile();
|
||||
component.setText("No bytecode found for " + SymbolPresentationUtil.getSymbolPresentableText(containingClass != null ? containingClass : containingFile));
|
||||
PsiElement presentableElement = getContainingClass(element);
|
||||
if (presentableElement == null) {
|
||||
presentableElement = element.getContainingFile();
|
||||
if (presentableElement == null && element instanceof PsiNamedElement) {
|
||||
presentableElement = element;
|
||||
}
|
||||
if (presentableElement == null) {
|
||||
component.setText("No bytecode found");
|
||||
return;
|
||||
}
|
||||
}
|
||||
component.setText("No bytecode found for " + SymbolPresentationUtil.getSymbolPresentableText(presentableElement));
|
||||
}
|
||||
content.setDisplayName(getTitle(element));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user