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 ofSuggestions based on text and cursor position.
-
Method Details
-
getSuggestions
Returns a list ofSuggestions based on text and cursor position.- Parameters:
text-cursor-- Returns:
- list of
Suggestions, 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.
-