Class RSyntaxTextAreaEditorKit.NextWordAction

  • 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.NextWordAction
    extends RTextAreaEditorKit.NextWordAction
    Action to move the selection and/or caret. Constructor indicates direction to use. This class overrides the behavior defined in RTextAreaEditorKit to better skip "words" in source code.
    See Also:
    Serialized Form
    • Field Detail

      • seg

        private javax.swing.text.Segment seg
    • Constructor Detail

      • NextWordAction

        public NextWordAction​(java.lang.String nm,
                              boolean select)
    • Method Detail

      • getNextWord

        protected int getNextWord​(RTextArea textArea,
                                  int offs)
                           throws javax.swing.text.BadLocationException
        Overridden to do better with skipping "words" in code.
        Overrides:
        getNextWord in class RTextAreaEditorKit.NextWordAction
        Throws:
        javax.swing.text.BadLocationException