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:
ActionListener,Serializable,Cloneable,EventListener,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 in
RTextAreaEditorKit to better skip "words" in source code.- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, getMacroIDMethods inherited from class org.fife.ui.rtextarea.RecordableTextAction
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, getShortDescription, isRecordable, setAccelerator, setMnemonic, setMnemonic, setName, setProperties, setRecordable, setShortDescriptionMethods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponentMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
seg
-
-
Constructor Details
-
PreviousWordAction
-
-
Method Details
-
getPreviousWord
Overridden to do better with skipping "words" in code.- Overrides:
getPreviousWordin classRTextAreaEditorKit.PreviousWordAction- Throws:
BadLocationException
-