From 7ebebc182dc21ef5a9fb96c1ccac839530910a22 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Mon, 23 Mar 2015 16:36:44 +0100 Subject: [PATCH] show implementations: check if sources are attached (IDEA-137734) --- .../codeInsight/hint/actions/ShowImplementationsAction.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hint/actions/ShowImplementationsAction.java b/platform/lang-impl/src/com/intellij/codeInsight/hint/actions/ShowImplementationsAction.java index 29aacc3716cc..c7232ed6d012 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hint/actions/ShowImplementationsAction.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hint/actions/ShowImplementationsAction.java @@ -148,6 +148,11 @@ public class ShowImplementationsAction extends AnAction implements PopupAction { } } + //check attached sources if any + if (element instanceof PsiCompiledElement) { + element = element.getNavigationElement(); + } + String text = ""; PsiElement[] impls = new PsiElement[0]; if (element != null) {