public class DataSetUrlCompletionProvider extends java.lang.Object implements CompletionProvider
COMPLETION_ALL_QUERY_TYPE, COMPLETION_QUERY_TYPE, DOCUMENTATION_QUERY_TYPE, TOOLTIP_QUERY_TYPE
Constructor and Description |
---|
DataSetUrlCompletionProvider() |
Modifier and Type | Method and Description |
---|---|
CompletionTask |
createTask(int arg0,
javax.swing.text.JTextComponent arg1)
Creates a task that performs a query of the given type on the given component.
|
int |
getAutoQueryTypes(javax.swing.text.JTextComponent arg0,
java.lang.String arg1)
Called by the code completion infrastructure to check whether a text just typed
into a text component triggers an automatic query invocation.
|
public CompletionTask createTask(int arg0, javax.swing.text.JTextComponent arg1)
CompletionProvider
org.netbeans.spi.editor.completion.support.AsyncCompletionTask
).
createTask
in interface CompletionProvider
arg0
- a type ot the query. It can be one of the CompletionProvider.COMPLETION_QUERY_TYPE
,
CompletionProvider.COMPLETION_ALL_QUERY_TYPE
, CompletionProvider.DOCUMENTATION_QUERY_TYPE
,
or CompletionProvider.TOOLTIP_QUERY_TYPE
(but not their combination).arg1
- a component on which the query is performedpublic int getAutoQueryTypes(javax.swing.text.JTextComponent arg0, java.lang.String arg1)
CompletionProvider
CompletionProvider.createTask(int, JTextComponent)
.getAutoQueryTypes
in interface CompletionProvider
arg0
- a component in which typing appearedarg1
- a typed textCompletionProvider.COMPLETION_QUERY_TYPE
, CompletionProvider.COMPLETION_ALL_QUERY_TYPE
,
CompletionProvider.DOCUMENTATION_QUERY_TYPE
, and CompletionProvider.TOOLTIP_QUERY_TYPE
values, or zero if no query should be automatically invoked.