Class AbstractMarkupLanguageSupport.InsertClosingTagAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
org.fife.rsta.ac.AbstractMarkupLanguageSupport.InsertClosingTagAction
- All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
AbstractMarkupLanguageSupport
Action that checks whether a closing tag should be auto-inserted into
the document. Subclasses should map this action to the '>'
key-typed event.
- Version:
- 1.0
-
Field Summary
Fields inherited from class AbstractAction
changeSupport, enabledFields inherited from interface Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate StringdiscoverTagName(org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc, int dot) Discovers the name of the tag just opened, if any.Methods inherited from class TextAction
augmentList, getFocusedComponent, getTextComponentMethods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
InsertClosingTagAction
InsertClosingTagAction()
-
-
Method Details
-
actionPerformed
-
discoverTagName
Discovers the name of the tag just opened, if any. Assumes standard SGML-style markup tags.- Parameters:
doc- The document to parse.dot- The location of the caret. This should be right at a ">" character closing an HTML tag.- Returns:
- The name of the tag to close, or
nullif it could not be determined.
-