protected class SourceCodeEditorImpl.SourceCodeEditorSuggester extends java.lang.Object implements Suggester
Modifier | Constructor and Description |
---|---|
protected |
SourceCodeEditorSuggester() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
applySuggestion(Suggestion suggestion,
java.lang.String text,
int cursor)
Applies the suggestion to the text.
|
java.util.List<Suggestion> |
getSuggestions(java.lang.String text,
int cursor)
Returns a list of
Suggestion s based on text and cursor position. |
public java.util.List<Suggestion> getSuggestions(java.lang.String text, int cursor)
Suggester
Suggestion
s based on text and cursor position.getSuggestions
in interface Suggester
Suggestion
s, empty list = no suggestionspublic java.lang.String applySuggestion(Suggestion suggestion, java.lang.String text, int cursor)
Suggester
Suggester.getSuggestions(String, int)
earlier.
sugg is one of the objects received from Suggester.getSuggestions(String, int)
So if you gave a subclass of Suggestion
, that you shall receive.applySuggestion
in interface Suggester