public class JythonCompletionProvider extends java.lang.Object implements CompletionProvider
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
message |
static java.lang.String |
PROP_MESSAGE |
COMPLETION_ALL_QUERY_TYPE, COMPLETION_QUERY_TYPE, DOCUMENTATION_QUERY_TYPE, TOOLTIP_QUERY_TYPE
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
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.
|
static JythonCompletionProvider |
getInstance() |
java.lang.String |
getMessage() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
void |
setMessage(java.lang.String message) |
CompletionSettings |
settings() |
protected java.lang.String message
public static final java.lang.String PROP_MESSAGE
public static JythonCompletionProvider getInstance()
public CompletionSettings settings()
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.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)