Populates candidates with a list of possible completions for the
buffer.
Method Detail
complete
int complete(String buffer,
int cursor,
List candidates)
Populates candidates with a list of possible completions for the
buffer. The candidates list will not be sorted before being
displayed to the user: thus, the complete method should sort the
List before returning.