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, getMacroIDactionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, isRecordable, setAccelerator, setMnemonic, setMnemonic, setName, setProperties, setRecordable, setShortDescriptionaugmentList, getFocusedComponent, getTextComponentprotected int getPreviousWord(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
getPreviousWord in class RTextAreaEditorKit.DumbCompleteWordActionjavax.swing.text.BadLocationExceptionprotected int getWordEnd(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
getWordEnd in class RTextAreaEditorKit.DumbCompleteWordActionjavax.swing.text.BadLocationExceptionprotected int getWordStart(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
getWordStart in class RTextAreaEditorKit.DumbCompleteWordActionjavax.swing.text.BadLocationExceptionprotected boolean isAcceptablePrefix(java.lang.String prefix)
isAcceptablePrefix in class RTextAreaEditorKit.DumbCompleteWordActionprefix - The prefix characters before the caret.