Package org.fife.ui.rsyntaxtextarea
Class RSyntaxTextAreaEditorKit.PreviousWordAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- javax.swing.text.TextAction
-
- org.fife.ui.rtextarea.RecordableTextAction
-
- org.fife.ui.rtextarea.RTextAreaEditorKit.PreviousWordAction
-
- org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit.PreviousWordAction
-
- 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.PreviousWordAction extends RTextAreaEditorKit.PreviousWordAction
Action to move the selection and/or caret. Constructor indicates direction to use. This class overrides the behavior defined inRTextAreaEditorKitto better skip "words" in source code.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.text.Segmentseg
-
Constructor Summary
Constructors Constructor Description PreviousWordAction(java.lang.String nm, boolean select)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetPreviousWord(RTextArea textArea, int offs)Overridden to do better with skipping "words" in code.-
Methods inherited from class org.fife.ui.rtextarea.RTextAreaEditorKit.PreviousWordAction
actionPerformedImpl, getMacroID
-
Methods inherited from class org.fife.ui.rtextarea.RecordableTextAction
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, getShortDescription, isRecordable, setAccelerator, setMnemonic, setMnemonic, setName, setProperties, setRecordable, setShortDescription
-
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
-
-
-
-
Method Detail
-
getPreviousWord
protected int getPreviousWord(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
Overridden to do better with skipping "words" in code.- Overrides:
getPreviousWordin classRTextAreaEditorKit.PreviousWordAction- Throws:
javax.swing.text.BadLocationException
-
-