Class JIndentAction

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

public class JIndentAction extends DefaultSyntaxAction
This class should be mapped to VK_ENTER. It performs proper indentation for Java Type languages and automatically inserts "*" in multi-line comments Initial Code contributed by ser... AT mail.ru
See Also:
  • Constructor Details

    • JIndentAction

      public JIndentAction()
  • Method Details

    • actionPerformed

      public void actionPerformed(JTextComponent target, SyntaxDocument sDoc, int dot, ActionEvent e)
      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 -