Class ShowAbbsAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, SyntaxAction

public class ShowAbbsAction extends DefaultSyntaxAction
Display all abbreviations for a JTextComponent., if it has any. Abbreviations are obtained from the IndentAction, so if the target does not have an instance of that actions, nothing is displayed.
See Also:
  • Constructor Details

    • ShowAbbsAction

      public ShowAbbsAction()
  • Method Details

    • actionPerformed

      public void actionPerformed(JTextComponent target, SyntaxDocument sDoc, int dot, ActionEvent e)
      Description copied from class: DefaultSyntaxAction
      Convenience method that will be called if the Action is performed on a JTextComponent. SyntaxActions should generally override this method.
      Overrides:
      actionPerformed in class DefaultSyntaxAction
      Parameters:
      target - (non-null JTextComponent from Action.getSource
      sDoc - (SyntaxDOcument of the text component, could be null)
      dot - (position of caret at text document)
      e - actual ActionEvent passed to actionPerformed