|Modifier and Type||Method and Description|
Called by the code completion infrastructure to cancel the task.
Called by the code completion infrastructure to ask the task to do a query and return the results through the given completion listener.
Called by the code completion infrastructure to inform the task about changes in the corresponding document.
void query(CompletionResultSet resultSet)
This method is always called in AWT thread but it may reschedule its processing into another thread and fire the given listener once the computing is finished.
resultSet- non-null result set to which the results of the query must be added.
void refresh(CompletionResultSet resultSet)
query()was invoked but it may also be invoked BEFORE the
query()in case the user types even before the
query()was called by the infrastructure. In such case the
resultSetparameter will be
resultSet- non-null result set to which the results of the refreshing must be added.
query()was not invoked yet and user has typed a character. In this case the provider may hide the completion by using
Completion.get().hideAll()if the typed character is inappropriate e.g. ";" for java completion.
This method may potentially be called from any thread.
Built on May 10 2021. | Copyright © 2017-2021 Apache Software Foundation. All Rights Reserved.