public interface CompletionLookupArranger
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Integer> |
PREFIX_CHANGES |
static Key<WeighingContext> |
WEIGHING_CONTEXT |
Modifier and Type | Method and Description |
---|---|
void |
addElement(CompletionResult result)
Adds an element to be arranged, along with its prefix matcher.
|
void |
addElement(LookupElement element,
CompletionSorter sorter,
PrefixMatcher prefixMatcher,
LookupElementPresentation presentation)
Adds an element to be arranged.
|
Pair<java.util.List<LookupElement>,java.lang.Integer> |
arrangeItems()
Returns the items in the appropriate order and the initial selection.
|
PrefixMatcher |
itemMatcher(LookupElement item)
Returns the prefix matcher registered for the specified element.
|
static final Key<WeighingContext> WEIGHING_CONTEXT
static final Key<java.lang.Integer> PREFIX_CHANGES
void addElement(LookupElement element, CompletionSorter sorter, PrefixMatcher prefixMatcher, LookupElementPresentation presentation)
presentation
- The presentation of the element (rendered with LookupElement.renderElement(LookupElementPresentation)
void addElement(CompletionResult result)
PrefixMatcher itemMatcher(LookupElement item)
Pair<java.util.List<LookupElement>,java.lang.Integer> arrangeItems()