public static class RSyntaxTextAreaEditorKit.DumbCompleteWordAction extends RTextAreaEditorKit.DumbCompleteWordAction
Constructor and Description |
---|
DumbCompleteWordAction() |
Modifier and Type | Method and Description |
---|---|
protected int |
getPreviousWord(RTextArea textArea,
int offs) |
protected int |
getWordEnd(RTextArea textArea,
int offs) |
protected int |
getWordStart(RTextArea textArea,
int offs) |
protected boolean |
isAcceptablePrefix(java.lang.String prefix)
Overridden to not suggest word completions if the text right before
the caret contains non-word characters, such as '/' or '%'.
|
actionPerformedImpl, getMacroID
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, isRecordable, setAccelerator, setMnemonic, setMnemonic, setName, setProperties, setRecordable, setShortDescription
augmentList, getFocusedComponent, getTextComponent
protected int getPreviousWord(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
getPreviousWord
in class RTextAreaEditorKit.DumbCompleteWordAction
javax.swing.text.BadLocationException
protected int getWordEnd(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
getWordEnd
in class RTextAreaEditorKit.DumbCompleteWordAction
javax.swing.text.BadLocationException
protected int getWordStart(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
getWordStart
in class RTextAreaEditorKit.DumbCompleteWordAction
javax.swing.text.BadLocationException
protected boolean isAcceptablePrefix(java.lang.String prefix)
isAcceptablePrefix
in class RTextAreaEditorKit.DumbCompleteWordAction
prefix
- The prefix characters before the caret.