Interface Suggester
- All Known Implementing Classes:
SourceCodeEditorImpl.SourceCodeEditorSuggester
public interface Suggester
-
Method Summary
Modifier and TypeMethodDescriptionapplySuggestion
(Suggestion sugg, String text, int cursor) Applies the suggestion to the text.getSuggestions
(String text, int cursor) Returns a list ofSuggestion
s based on text and cursor position.
-
Method Details
-
getSuggestions
Returns a list ofSuggestion
s based on text and cursor position.- Parameters:
text
-cursor
-- Returns:
- list of
Suggestion
s, empty list = no suggestions
-
applySuggestion
Applies the suggestion to the text. text and cursor are the same that were given togetSuggestions(String, int)
earlier. sugg is one of the objects received fromgetSuggestions(String, int)
So if you gave a subclass ofSuggestion
, that you shall receive.- Parameters:
sugg
-text
-cursor
-- Returns:
- Text after the suggestion has been applied.
-