mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-148666 Name of enclosing class is not shown for anonymous classes in 'Choose implementation' popup
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ public class ClassPresentationUtil {
|
||||
return ((PsiFile)element).getName();
|
||||
}
|
||||
else if (element instanceof PsiField) {
|
||||
return ((PsiField)element).getName();
|
||||
return ((PsiField)element).getName() + " in " + getContextName(element, qualified);
|
||||
}
|
||||
else{
|
||||
return null;
|
||||
|
||||
+1
-1
@@ -177,7 +177,7 @@ public class ImplementationsViewTest extends LightCodeInsightFixtureTestCase {
|
||||
all.add(psiClass);
|
||||
all.addAll(classes);
|
||||
final ImplementationViewComponent component = new ImplementationViewComponent(all.toArray(new PsiElement[all.size()]), 0);
|
||||
assertContent(component, new String[]{"a.java (AFoo)", "a.java (Anonymous in IMPL)"});
|
||||
assertContent(component, new String[]{"a.java (AFoo)", "a.java (Anonymous in IMPL in AFoo)"});
|
||||
}
|
||||
|
||||
public void testInterfaceMethodOfFunctionalInterface() {
|
||||
|
||||
Reference in New Issue
Block a user