Class ShellLanguageSupport
java.lang.Object
org.fife.rsta.ac.AbstractLanguageSupport
org.fife.rsta.ac.sh.ShellLanguageSupport
- All Implemented Interfaces:
LanguageSupport
Language support for Unix shell scripts.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ShellCompletionProviderThe completion provider.private booleanWhether local man pages should be used.Fields inherited from interface LanguageSupport
PROPERTY_LANGUAGE_PARSER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ListCellRenderer<Object> Creates the default cell renderer to use when none is specified.private ShellCompletionProviderLazily creates the shared completion provider instance for sh scripts.booleanReturns whether the local system's man pages should be used for descriptions of functions.voidinstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Installs this support.voidsetUseLocalManPages(boolean use) Sets whether the local system's man pages should be used for descriptions of functions.voiduninstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Uninstalls this support.Methods inherited from class AbstractLanguageSupport
createAutoCompletion, getAutoActivationDelay, getAutoCompletionFor, getDefaultCompletionCellRenderer, getShowDescWindow, getTextAreas, installImpl, isAutoActivationEnabled, isAutoCompleteEnabled, isParameterAssistanceEnabled, setAutoActivationDelay, setAutoActivationEnabled, setAutoCompleteEnabled, setDefaultCompletionCellRenderer, setParameterAssistanceEnabled, setShowDescWindow, uninstallImpl
-
Field Details
-
provider
The completion provider. This is shared amongst all sh text areas. -
useLocalManPages
private boolean useLocalManPagesWhether local man pages should be used.
-
-
Constructor Details
-
ShellLanguageSupport
public ShellLanguageSupport()Constructor.
-
-
Method Details
-
createDefaultCompletionCellRenderer
Creates the default cell renderer to use when none is specified. Subclasses can override this method if there is a "better" default renderer for a specific language.- Overrides:
createDefaultCompletionCellRendererin classAbstractLanguageSupport- Returns:
- The default renderer for the completion list.
-
getProvider
Lazily creates the shared completion provider instance for sh scripts.- Returns:
- The completion provider.
-
getUseLocalManPages
public boolean getUseLocalManPages()Returns whether the local system's man pages should be used for descriptions of functions. If this returns false, or man cannot be found (e.g. if this is Windows), a shorter description will be used instead.- Returns:
- Whether to use the local man pages in function descriptions.
- See Also:
-
install
public void install(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Installs this support.- Parameters:
textArea- The text area to install onto.- See Also:
-
setUseLocalManPages
public void setUseLocalManPages(boolean use) Sets whether the local system's man pages should be used for descriptions of functions. If this is set to false, or man cannot be found (e.g. if this is Windows), a shorter description will be used instead.- Parameters:
use- Whether to use the local man pages in function descriptions.- See Also:
-
uninstall
public void uninstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Uninstalls this support.- Parameters:
textArea- The text area to uninstall from.- See Also:
-