public class XmlLanguageSupport extends AbstractMarkupLanguageSupport
XmlOutlineTree, a tree view modeling the XML in
the RSyntaxTextArea.XmlOutlineTreeINSERT_CLOSING_TAG_ACTIONPROPERTY_LANGUAGE_PARSER| Constructor and Description |
|---|
XmlLanguageSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.ListCellRenderer |
createDefaultCompletionCellRenderer()
Creates the default cell renderer to use when none is specified.
|
XmlParser |
getParser(RSyntaxTextArea textArea)
Returns the XML parser running on a text area with this XML language
support installed.
|
boolean |
getShowSyntaxErrors()
Returns whether syntax errors are squiggle-underlined in the editor.
|
void |
install(RSyntaxTextArea textArea)
Installs this support.
|
protected void |
installKeyboardShortcuts(RSyntaxTextArea textArea)
Installs extra keyboard shortcuts supported by this language support.
|
void |
setShowSyntaxErrors(boolean show)
Sets whether syntax errors are squiggle-underlined in the editor.
|
protected boolean |
shouldAutoCloseTag(java.lang.String tag)
Subclasses should override this method to return whether a specified
tag should have its closing tag auto-inserted.
|
void |
uninstall(RSyntaxTextArea textArea)
Uninstalls this support.
|
protected void |
uninstallKeyboardShortcuts(RSyntaxTextArea textArea)
Uninstalls any keyboard shortcuts specific to this language support.
|
getAutoAddClosingTags, setAutoAddClosingTagscreateAutoCompletion, getAutoActivationDelay, getAutoCompletionFor, getDefaultCompletionCellRenderer, getShowDescWindow, getTextAreas, installImpl, isAutoActivationEnabled, isAutoCompleteEnabled, isParameterAssistanceEnabled, setAutoActivationDelay, setAutoActivationEnabled, setAutoCompleteEnabled, setDefaultCompletionCellRenderer, setParameterAssistanceEnabled, setShowDescWindow, uninstallImplprotected javax.swing.ListCellRenderer createDefaultCompletionCellRenderer()
createDefaultCompletionCellRenderer in class AbstractLanguageSupportpublic XmlParser getParser(RSyntaxTextArea textArea)
textArea - The text area.null if the text
area does not have this XmlLanguageSupport installed.public boolean getShowSyntaxErrors()
setShowSyntaxErrors(boolean)public void install(RSyntaxTextArea textArea)
textArea - The text area to install onto.LanguageSupport.uninstall(RSyntaxTextArea)protected void installKeyboardShortcuts(RSyntaxTextArea textArea)
Subclasses should call this method in their
LanguageSupport.install(RSyntaxTextArea) methods.
installKeyboardShortcuts in class AbstractMarkupLanguageSupporttextArea - The text area to install the shortcuts into.AbstractMarkupLanguageSupport.uninstallKeyboardShortcuts(RSyntaxTextArea)public void setShowSyntaxErrors(boolean show)
show - Whether syntax errors are squiggle-underlined.getShowSyntaxErrors()protected boolean shouldAutoCloseTag(java.lang.String tag)
shouldAutoCloseTag in class AbstractMarkupLanguageSupporttag - The name of the tag to check.public void uninstall(RSyntaxTextArea textArea)
textArea - The text area to uninstall from.LanguageSupport.install(RSyntaxTextArea)protected void uninstallKeyboardShortcuts(RSyntaxTextArea textArea)
Subclasses should call this method in their
LanguageSupport.uninstall(RSyntaxTextArea) methods.
uninstallKeyboardShortcuts in class AbstractMarkupLanguageSupporttextArea - The text area to uninstall the actions from.AbstractMarkupLanguageSupport.installKeyboardShortcuts(RSyntaxTextArea)