Class DeleteLinesAction

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

public class DeleteLinesAction extends DefaultSyntaxAction
This Action deletes the current line, or all the highlighted lines.
See Also:
  • Constructor Details

    • DeleteLinesAction

      public DeleteLinesAction()
  • 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