Package org.fife.ui.rsyntaxtextarea
Class RSyntaxTextAreaEditorKit.DeletePrevWordAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- javax.swing.text.TextAction
-
- org.fife.ui.rtextarea.RecordableTextAction
-
- org.fife.ui.rtextarea.RTextAreaEditorKit.DeletePrevWordAction
-
- org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit.DeletePrevWordAction
-
- 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.DeletePrevWordAction extends RTextAreaEditorKit.DeletePrevWordAction
Deletes the previous word, but differentiates symbols from "words" to match the behavior of code editors.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.text.Segment
seg
-
Constructor Summary
Constructors Constructor Description DeletePrevWordAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getPreviousWordStart(RTextArea textArea, int offs)
Returns the starting offset to delete.-
Methods inherited from class org.fife.ui.rtextarea.RTextAreaEditorKit.DeletePrevWordAction
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
-
getPreviousWordStart
protected int getPreviousWordStart(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
Description copied from class:RTextAreaEditorKit.DeletePrevWordAction
Returns the starting offset to delete. Exists so subclasses can override.- Overrides:
getPreviousWordStart
in classRTextAreaEditorKit.DeletePrevWordAction
- Throws:
javax.swing.text.BadLocationException
-
-