接口 LanguageSupport
-
- 所有已知实现类:
AbstractLanguageSupport,JythonLanguageSupport
public interface LanguageSupport"Extra" support for a programming language (code completion, parser, etc.).- 版本:
- 1.0
- 作者:
- Robert Futrell
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringPROPERTY_LANGUAGE_PARSERClient property set onRSyntaxTextAreas referencing theParserinstance parsing its source code.
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 intgetAutoActivationDelay()Returns the delay between when the user types a character and when the code completion popup should automatically appear (if applicable).ListCellRenderergetDefaultCompletionCellRenderer()Returns the default list cell renderer to install for all text areas with this language support installed.booleangetShowDescWindow()REturns whether the description window is also shown when the completion list is displayed, for editors of this language.voidinstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)Installs this support.booleanisAutoActivationEnabled()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).booleanisAutoCompleteEnabled()Returns whether auto-completion is enabled for this language.booleanisParameterAssistanceEnabled()Returns whether parameter assistance is enabled for editors of this language.voidsetAutoActivationDelay(int ms)Sets the delay between when the user types a character and when the code completion popup should automatically appear (if applicable).voidsetAutoActivationEnabled(boolean enabled)Toggles whether auto-activation is enabled.voidsetAutoCompleteEnabled(boolean enabled)Toggles whether auto-completion is enabled for this language.voidsetDefaultCompletionCellRenderer(ListCellRenderer r)Sets the default list cell renderer to install for all text areas with this language support installed.voidsetParameterAssistanceEnabled(boolean enabled)Toggles whether parameter assistance is enabled for editors of this language.voidsetShowDescWindow(boolean show)Toggles whether the description window should also be shown when the completion list is displayed, for editors of this language.voiduninstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)Uninstalls this support.
-
-
-
方法详细资料
-
getAutoActivationDelay
int getAutoActivationDelay()
Returns the delay between when the user types a character and when the code completion popup should automatically appear (if applicable). This parameter is only honored ifisAutoActivationEnabled()returnstrue.- 返回:
- The delay, in milliseconds.
- 另请参阅:
setAutoActivationDelay(int)
-
getDefaultCompletionCellRenderer
ListCellRenderer getDefaultCompletionCellRenderer()
Returns the default list cell renderer to install for all text areas with this language support installed.- 返回:
- The renderer. This will never be
null. - 另请参阅:
setDefaultCompletionCellRenderer(ListCellRenderer)
-
getShowDescWindow
boolean getShowDescWindow()
REturns whether the description window is also shown when the completion list is displayed, for editors of this language.- 返回:
- Whether the description window is shown.
- 另请参阅:
setShowDescWindow(boolean)
-
isAutoActivationEnabled
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). Note that this parameter will be ignored if auto-completion is disabled.- 返回:
- Whether auto-activation is enabled.
- 另请参阅:
setAutoActivationEnabled(boolean),getAutoActivationDelay(),isAutoCompleteEnabled()
-
isAutoCompleteEnabled
boolean isAutoCompleteEnabled()
Returns whether auto-completion is enabled for this language. If this value isfalse, thenctrl+spacewill do nothing.- 返回:
- Whether auto-completion is enabled.
- 另请参阅:
setAutoCompleteEnabled(boolean)
-
install
void install(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)
Installs this support.- 参数:
textArea- The text area to install onto.- 另请参阅:
uninstall(RSyntaxTextArea)
-
isParameterAssistanceEnabled
boolean isParameterAssistanceEnabled()
Returns whether parameter assistance is enabled for editors of this language. Note that some language do not support parameter assistance at all; in those cases, this parameter does nothing.- 返回:
- Whether parameter assistance is enabled for editors of this language.
- 另请参阅:
setParameterAssistanceEnabled(boolean)
-
setAutoActivationDelay
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). This parameter is only honored ifisAutoActivationEnabled()returnstrue.- 参数:
ms- The delay, in milliseconds. This should be greater than zero.- 另请参阅:
getAutoActivationDelay()
-
setAutoActivationEnabled
void setAutoActivationEnabled(boolean enabled)
Toggles whether auto-activation is enabled. Note that auto-activation also depends on auto-completion itself being enabled.- 参数:
enabled- Whether auto-activation is enabled.- 另请参阅:
isAutoActivationEnabled(),setAutoActivationDelay(int)
-
setAutoCompleteEnabled
void setAutoCompleteEnabled(boolean enabled)
Toggles whether auto-completion is enabled for this language. If this is set tofalse, thenctrl+spacewill do nothing.- 参数:
enabled- Whether auto-completion should be enabled.- 另请参阅:
isAutoCompleteEnabled()
-
setDefaultCompletionCellRenderer
void setDefaultCompletionCellRenderer(ListCellRenderer r)
Sets the default list cell renderer to install for all text areas with this language support installed. This renderer will be shared amongst all text areas.- 参数:
r- The renderer. If this isnull, a default will be used.- 另请参阅:
getDefaultCompletionCellRenderer()
-
setParameterAssistanceEnabled
void setParameterAssistanceEnabled(boolean enabled)
Toggles whether parameter assistance is enabled for editors of this language.- 参数:
enabled- Whether parameter assistance is enabled.- 另请参阅:
isParameterAssistanceEnabled()
-
setShowDescWindow
void setShowDescWindow(boolean show)
Toggles whether the description window should also be shown when the completion list is displayed, for editors of this language.- 参数:
show- Whether to show the description window.- 另请参阅:
getShowDescWindow()
-
uninstall
void uninstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)
Uninstalls this support.- 参数:
textArea- The text area to uninstall from.- 另请参阅:
install(RSyntaxTextArea)
-
-