public abstract class TextFieldCompletionProvider extends java.lang.Object implements TextCompletionProvider
Modifier and Type | Field and Description |
---|---|
protected boolean |
myCaseInsensitivity |
Modifier | Constructor and Description |
---|---|
protected |
TextFieldCompletionProvider() |
protected |
TextFieldCompletionProvider(boolean caseInsensitivity) |
Modifier and Type | Method and Description |
---|---|
CharFilter.Result |
acceptChar(char c) |
protected abstract void |
addCompletionVariants(java.lang.String text,
int offset,
java.lang.String prefix,
CompletionResultSet result) |
void |
apply(EditorTextField field) |
void |
apply(EditorTextField field,
java.lang.String text) |
CompletionResultSet |
applyPrefixMatcher(CompletionResultSet result,
java.lang.String prefix) |
EditorTextField |
createEditor(Project project) |
EditorTextField |
createEditor(Project project,
boolean shouldHaveBorder,
Consumer<Editor> editorConstructionCallback) |
void |
fillCompletionVariants(CompletionParameters parameters,
java.lang.String prefix,
CompletionResultSet result) |
java.lang.String |
getAdvertisement() |
protected java.lang.String |
getPrefix(java.lang.String currentTextPrefix) |
java.lang.String |
getPrefix(java.lang.String text,
int offset) |
boolean |
isCaseInsensitivity() |
protected TextFieldCompletionProvider()
protected TextFieldCompletionProvider(boolean caseInsensitivity)
public java.lang.String getPrefix(java.lang.String text, int offset)
getPrefix
in interface TextCompletionProvider
public CompletionResultSet applyPrefixMatcher(CompletionResultSet result, java.lang.String prefix)
applyPrefixMatcher
in interface TextCompletionProvider
public CharFilter.Result acceptChar(char c)
acceptChar
in interface TextCompletionProvider
public void fillCompletionVariants(CompletionParameters parameters, java.lang.String prefix, CompletionResultSet result)
fillCompletionVariants
in interface TextCompletionProvider
public void apply(EditorTextField field, java.lang.String text)
public void apply(EditorTextField field)
public boolean isCaseInsensitivity()
protected java.lang.String getPrefix(java.lang.String currentTextPrefix)
public java.lang.String getAdvertisement()
getAdvertisement
in interface TextCompletionProvider
protected abstract void addCompletionVariants(java.lang.String text, int offset, java.lang.String prefix, CompletionResultSet result)
public EditorTextField createEditor(Project project)
public EditorTextField createEditor(Project project, boolean shouldHaveBorder, Consumer<Editor> editorConstructionCallback)