Class RSyntaxTextAreaEditorKit.InsertQuoteAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
    Enclosing class:
    RSyntaxTextAreaEditorKit

    public static class RSyntaxTextAreaEditorKit.InsertQuoteAction
    extends RSyntaxTextAreaEditorKit.InsertPairedCharacterAction
    Inserts a quote character. If the current language supports string literals with this quote character, the following additional logic occurs:
    • If the caret is not in a string literal or comment, both the opening and closing quotes are entered
    • If the caret is at the end (the closing quote) of a valid quoted literal, the existing closing quote character is overwritten, rather than a new quote character being entered
    This feature is meant to simplify the common case of typing single-line strings.
    See Also:
    Serialized Form