de.matthiasmann.twl.model
Interface AutoCompletionDataSource

All Known Implementing Classes:
FileSystemAutoCompletionDataSource

public interface AutoCompletionDataSource

An auto completion data source


Method Summary
 AutoCompletionResult collectSuggestions(java.lang.String text, int cursorPos, AutoCompletionResult prev)
          Collects auto completion results
 

Method Detail

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 completion
cursorPos - The cursor position for which to compute the auto completion
prev - The previous AutoCompletionResult - can be used to speed up the computation
Returns:
The AutoCompletionResult object or null if no reults could be found