Package org.fife.rsta.ac.php
Class PhpLanguageSupport
java.lang.Object
org.fife.rsta.ac.AbstractLanguageSupport
org.fife.rsta.ac.AbstractMarkupLanguageSupport
org.fife.rsta.ac.php.PhpLanguageSupport
- All Implemented Interfaces:
LanguageSupport
Language support for PHP. Features currently include:
- Code completion for PHP functions.
- Code completion for HTML5 tags and attributes.
- Automatic creation of closing tags for non-self-closing tags.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PhpCompletionProviderThe completion provider.A cached set of tags that require closing tags.Fields inherited from class org.fife.rsta.ac.AbstractMarkupLanguageSupport
INSERT_CLOSING_TAG_ACTIONFields inherited from interface org.fife.rsta.ac.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 PhpCompletionProviderLazily creates the shared completion provider instance for PHP.voidinstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Installs this support.protected booleanshouldAutoCloseTag(String tag) Subclasses should override this method to return whether a specified tag should have its closing tag auto-inserted.voiduninstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Uninstalls this support.Methods inherited from class org.fife.rsta.ac.AbstractMarkupLanguageSupport
getAutoAddClosingTags, installKeyboardShortcuts, setAutoAddClosingTags, uninstallKeyboardShortcutsMethods inherited from class org.fife.rsta.ac.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 PHP text areas. -
tagsToClose
A cached set of tags that require closing tags.
-
-
Constructor Details
-
PhpLanguageSupport
public PhpLanguageSupport()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 PHP.- Returns:
- The completion provider.
-
install
public void install(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Installs this support.- Parameters:
textArea- The text area to install onto.- See Also:
-
shouldAutoCloseTag
Subclasses should override this method to return whether a specified tag should have its closing tag auto-inserted.- Specified by:
shouldAutoCloseTagin classAbstractMarkupLanguageSupport- Parameters:
tag- The name of the tag to check.- Returns:
- Whether the tag should have its closing tag auto-inserted.
-
uninstall
public void uninstall(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) Uninstalls this support.- Parameters:
textArea- The text area to uninstall from.- See Also:
-