diff options
Diffstat (limited to 'platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementWeigher.java')
-rw-r--r-- | platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementWeigher.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementWeigher.java b/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementWeigher.java index 30c97a8c804a..328c3dd8fcf1 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementWeigher.java +++ b/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementWeigher.java @@ -50,6 +50,13 @@ public abstract class LookupElementWeigher { } @Nullable - public abstract Comparable weigh(@NotNull LookupElement element); + public Comparable weigh(@NotNull LookupElement element, @NotNull WeighingContext context) { + return weigh(element); + } + + @Nullable + public Comparable weigh(@NotNull LookupElement element) { + throw new UnsupportedOperationException("weigh not implemented in " + getClass()); + } } |