mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
predictable lookup element classifier order
This commit is contained in:
+6
-1
@@ -95,7 +95,12 @@ public class CompletionLookupArranger extends LookupArranger {
|
||||
}
|
||||
|
||||
private MultiMap<CompletionSorterImpl, LookupElement> groupItemsBySorter(List<LookupElement> source) {
|
||||
MultiMap<CompletionSorterImpl, LookupElement> inputBySorter = new MultiMap<CompletionSorterImpl, LookupElement>();
|
||||
MultiMap<CompletionSorterImpl, LookupElement> inputBySorter = new MultiMap<CompletionSorterImpl, LookupElement>() {
|
||||
@Override
|
||||
protected Map<CompletionSorterImpl, Collection<LookupElement>> createMap() {
|
||||
return ContainerUtil.newLinkedHashMap();
|
||||
}
|
||||
};
|
||||
for (LookupElement element : source) {
|
||||
inputBySorter.putValue(obtainSorter(element), element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user