in a class, prefer member modifiers to other classes

This commit is contained in:
peter
2011-03-07 18:25:00 +01:00
parent bb17460a04
commit 09108a1141
3 changed files with 16 additions and 2 deletions
@@ -116,6 +116,7 @@ public class JavaCompletionSorting {
@Override
public Comparable weigh(@NotNull LookupElement element) {
final Object o = element.getObject();
if (o instanceof PsiKeyword) return -3;
if (!(o instanceof PsiMember)) return 0;
if (((PsiMember)o).hasModifierProperty(PsiModifier.STATIC)) {