org.das2.jythoncompletion.support.AsyncCompletionQuery

Defines query processing of an asynchronous completion task.
The {@link #query(CompletionResultSet, Document, int)} abstract method needs to be implemented to define the asynchronous querying behavior.
In addition filtering of the result set computed during querying can be implemented by overriding the {@link #canFilter(JTextComponent)} and {@link #filter(CompletionResultSet)}.

AsyncCompletionQuery( )


isTaskCancelled

isTaskCancelled( ) → boolean

Check whether the task corresponding to this query was cancelled.
Subclasses should check this flag and stop the query computation.

Returns:

true if the task was cancelled or false if not.

[search for examples] [view on GitHub] [view on old javadoc] [view source]