org.fife.ui.rsyntaxtextarea
Class RSyntaxTextAreaEditorKit.NextWordAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.text.TextAction
          extended byorg.fife.ui.rtextarea.RecordableTextAction
              extended byorg.fife.ui.rtextarea.RTextAreaEditorKit.NextWordAction
                  extended byorg.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit.NextWordAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
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 Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
RSyntaxTextAreaEditorKit.NextWordAction(java.lang.String nm, boolean select)
           
 
Method Summary
protected  int getNextWord(RTextArea textArea, int offs)
          Overridden to do better with skipping "words" in code.
 
Methods inherited from class org.fife.ui.rtextarea.RTextAreaEditorKit.NextWordAction
actionPerformedImpl, getMacroID
 
Methods inherited from class org.fife.ui.rtextarea.RecordableTextAction
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, isRecordable, setMnemonic, setRecordable
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSyntaxTextAreaEditorKit.NextWordAction

public RSyntaxTextAreaEditorKit.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