de.matthiasmann.twl.model
Interface AutoCompletionDataSource
- All Known Implementing Classes:
- FileSystemAutoCompletionDataSource
public interface AutoCompletionDataSource
An auto completion data source
collectSuggestions
AutoCompletionResult collectSuggestions(java.lang.String text,
int cursorPos,
AutoCompletionResult prev)
- Collects auto completion results
- Parameters:
text - The new text for which to compute auto completioncursorPos - The cursor position for which to compute the auto completionprev - The previous AutoCompletionResult - can be used to speed up the computation
- Returns:
- The AutoCompletionResult object or null if no reults could be found