mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
finally remove LookupElement#getGrouping() together with its ruby clients rework
This commit is contained in:
@@ -77,13 +77,6 @@ public abstract class LookupElement extends UserDataHolderBase {
|
||||
presentation.setItemText(getLookupString());
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link com.intellij.codeInsight.completion.PrioritizedLookupElement}
|
||||
*/
|
||||
public int getGrouping() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public <T> T as(Class<T> aClass) {
|
||||
//noinspection unchecked
|
||||
|
||||
@@ -102,11 +102,6 @@ public abstract class LookupElementDecorator<T extends LookupElement> extends Lo
|
||||
return myDelegate.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getGrouping() {
|
||||
return myDelegate.getGrouping();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static <T extends LookupElement> LookupElementDecorator<T> withInsertHandler(@NotNull T element, @NotNull final InsertHandler<? super LookupElementDecorator<T>> insertHandler) {
|
||||
return new InsertingDecorator<T>(element, insertHandler);
|
||||
|
||||
@@ -14,6 +14,6 @@ public class GroupingWeigher extends CompletionWeigher {
|
||||
return -prioritized.getGrouping();
|
||||
}
|
||||
|
||||
return -element.getGrouping();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -298,11 +298,6 @@ public class LookupItem<T> extends MutableLookupElement<T> implements Comparable
|
||||
return myPriority;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getGrouping() {
|
||||
return myGrouping;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public LookupItem<T> setPresentableText(@NotNull final String displayText) {
|
||||
myPresentable = displayText;
|
||||
|
||||
Reference in New Issue
Block a user