public interface LanguageSupport
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_LANGUAGE_PARSER
Client property set on
RSyntaxTextAreas referencing the
Parser instance parsing its source code. |
| Modifier and Type | Method and Description |
|---|---|
int |
getAutoActivationDelay()
Returns the delay between when the user types a character and when the
code completion popup should automatically appear (if applicable).
|
javax.swing.ListCellRenderer |
getDefaultCompletionCellRenderer()
Returns the default list cell renderer to install for all text areas
with this language support installed.
|
boolean |
getShowDescWindow()
REturns whether the description window is also shown when the
completion list is displayed, for editors of this language.
|
void |
install(RSyntaxTextArea textArea)
Installs this support.
|
boolean |
isAutoActivationEnabled()
Returns whether auto-activation is enabled (that is, whether the
completion popup will automatically appear after a delay when the user
types an appropriate character).
|
boolean |
isAutoCompleteEnabled()
Returns whether auto-completion is enabled for this language.
|
boolean |
isParameterAssistanceEnabled()
Returns whether parameter assistance is enabled for editors of this
language.
|
void |
setAutoActivationDelay(int ms)
Sets the delay between when the user types a character and when the
code completion popup should automatically appear (if applicable).
|
void |
setAutoActivationEnabled(boolean enabled)
Toggles whether auto-activation is enabled.
|
void |
setAutoCompleteEnabled(boolean enabled)
Toggles whether auto-completion is enabled for this language.
|
void |
setDefaultCompletionCellRenderer(javax.swing.ListCellRenderer r)
Sets the default list cell renderer to install for all text areas with
this language support installed.
|
void |
setParameterAssistanceEnabled(boolean enabled)
Toggles whether parameter assistance is enabled for editors of this
language.
|
void |
setShowDescWindow(boolean show)
Toggles whether the description window should also be shown when the
completion list is displayed, for editors of this language.
|
void |
uninstall(RSyntaxTextArea textArea)
Uninstalls this support.
|
static final java.lang.String PROPERTY_LANGUAGE_PARSER
RSyntaxTextAreas referencing the
Parser instance parsing its source code. This will be
null if a language support does not install such a parser.int getAutoActivationDelay()
isAutoActivationEnabled()
returns true.setAutoActivationDelay(int)javax.swing.ListCellRenderer getDefaultCompletionCellRenderer()
null.setDefaultCompletionCellRenderer(ListCellRenderer)boolean getShowDescWindow()
setShowDescWindow(boolean)boolean isAutoActivationEnabled()
setAutoActivationEnabled(boolean),
getAutoActivationDelay(),
isAutoCompleteEnabled()boolean isAutoCompleteEnabled()
false, then ctrl+space will
do nothing.setAutoCompleteEnabled(boolean)void install(RSyntaxTextArea textArea)
textArea - The text area to install onto.uninstall(RSyntaxTextArea)boolean isParameterAssistanceEnabled()
setParameterAssistanceEnabled(boolean)void setAutoActivationDelay(int ms)
isAutoActivationEnabled()
returns true.ms - The delay, in milliseconds. This should be greater than zero.getAutoActivationDelay()void setAutoActivationEnabled(boolean enabled)
enabled - Whether auto-activation is enabled.isAutoActivationEnabled(),
setAutoActivationDelay(int)void setAutoCompleteEnabled(boolean enabled)
false, then ctrl+space will
do nothing.enabled - Whether auto-completion should be enabled.isAutoCompleteEnabled()void setDefaultCompletionCellRenderer(javax.swing.ListCellRenderer r)
r - The renderer. If this is null, a default will
be used.getDefaultCompletionCellRenderer()void setParameterAssistanceEnabled(boolean enabled)
enabled - Whether parameter assistance is enabled.isParameterAssistanceEnabled()void setShowDescWindow(boolean show)
show - Whether to show the description window.getShowDescWindow()void uninstall(RSyntaxTextArea textArea)
textArea - The text area to uninstall from.install(RSyntaxTextArea)