IDEA-96713 Incorrect options shown for 'implements'

This commit is contained in:
peter
2013-09-19 11:17:20 +02:00
parent e02e2c4f8b
commit b901d90b37
4 changed files with 20 additions and 1 deletions
@@ -799,7 +799,7 @@ public class PsiJavaCodeReferenceElementImpl extends CompositePsiElement impleme
@Override
public void processVariants(@NotNull final PsiScopeProcessor processor) {
final OrFilter filter = new OrFilter();
if (isInCode() && !(getParent() instanceof PsiImportStatement)) {
if (isInCode() && !(getParent() instanceof PsiImportStatement) && !(getParent() instanceof PsiReferenceList)) {
filter.addFilter(new AndFilter(ElementClassFilter.METHOD, new NotFilter(new ConstructorFilter())));
filter.addFilter(ElementClassFilter.VARIABLE);
}
@@ -0,0 +1,9 @@
public class Doo implements Intf.I<caret> {
}
interface Intf {
int INT_FIELD = 2;
interface Inner {}
}
@@ -0,0 +1,9 @@
public class Doo implements Intf.Inner<caret> {
}
interface Intf {
int INT_FIELD = 2;
interface Inner {}
}
@@ -994,6 +994,7 @@ public class ListUtils {
public void testNewGenericClass() throws Throwable { doTest('\n') }
public void testNewGenericInterface() throws Throwable { doTest() }
public void testEnumPrivateFinal() throws Throwable { doTest() }
public void testNoFieldsInImplements() throws Throwable { doTest() }
public void testSwitchConstantsFromReferencedClass() throws Throwable { doTest('\n') }