public class ScriptDynamicCompletionProvider
extends org.fife.ui.autocomplete.DefaultCompletionProvider
Constructor and Description |
---|
ScriptDynamicCompletionProvider()
Creates a dynamic completion provider that builds completions more like an IDE, by determining the type of each variable and listing all options
|
Modifier and Type | Method and Description |
---|---|
void |
enableMacros(boolean enable)
Sets whether or not the macros are enabled
|
java.util.List<org.fife.ui.autocomplete.Completion> |
getCompletions(javax.swing.text.JTextComponent comp) |
protected java.util.List<org.fife.ui.autocomplete.Completion> |
getCompletionsImpl(javax.swing.text.JTextComponent comp)
Overridden to set the master "completions" array to only those possible for the current "qualified" identifier entered at the caret position.
|
java.lang.String |
getQualifiedEnteredText(javax.swing.text.JTextComponent comp)
Ripped off from getAlreadyEnteredText(), but also accepts the '.' char.
|
boolean |
isAutoActivateOkay(javax.swing.text.JTextComponent t) |
static void |
prepareDocLoader(boolean reload)
Prepares the doc loader.
|
java.lang.String |
toString() |
getAlreadyEnteredText, getCompletionsAt, getParameterizedCompletions, init, isValidChar, loadFromXML, loadFromXML, loadFromXML, loadFromXML
addCompletion, addCompletions, addWordCompletions, checkProviderAndAdd, clear, getCompletionByInputText, removeCompletion
clearParameterizedCompletionParams, getListCellRenderer, getParameterChoicesProvider, getParameterListEnd, getParameterListSeparator, getParameterListStart, getParent, setAutoActivationRules, setListCellRenderer, setParameterChoicesProvider, setParameterizedCompletionParams, setParent
public ScriptDynamicCompletionProvider()
public static void prepareDocLoader(boolean reload)
reload
- True if we should reload the documentations, false otherwisepublic java.util.List<org.fife.ui.autocomplete.Completion> getCompletions(javax.swing.text.JTextComponent comp)
getCompletions
in interface org.fife.ui.autocomplete.CompletionProvider
getCompletions
in class org.fife.ui.autocomplete.CompletionProviderBase
protected java.util.List<org.fife.ui.autocomplete.Completion> getCompletionsImpl(javax.swing.text.JTextComponent comp)
getCompletionsImpl
in class org.fife.ui.autocomplete.AbstractCompletionProvider
public java.lang.String getQualifiedEnteredText(javax.swing.text.JTextComponent comp)
comp
- The text componentpublic boolean isAutoActivateOkay(javax.swing.text.JTextComponent t)
isAutoActivateOkay
in interface org.fife.ui.autocomplete.CompletionProvider
isAutoActivateOkay
in class org.fife.ui.autocomplete.CompletionProviderBase
public void enableMacros(boolean enable)
enable
- The new enable status for macrospublic java.lang.String toString()
toString
in class java.lang.Object