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

private class AbstractMarkupLanguageSupport.InsertClosingTagAction extends TextAction
Action that checks whether a closing tag should be auto-inserted into the document. Subclasses should map this action to the '>' key-typed event.
  • Constructor Details

    • InsertClosingTagAction

      InsertClosingTagAction()
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
    • discoverTagName

      private String discoverTagName(org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc, int dot)
      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 null if it could not be determined.