public static class RSyntaxTextAreaEditorKit.DumbCompleteWordAction extends RTextAreaEditorKit.DumbCompleteWordAction
changeSupport, enabled
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 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(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
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected int getPreviousWord(RTextArea textArea, int offs) throws BadLocationException
getPreviousWord
in class RTextAreaEditorKit.DumbCompleteWordAction
BadLocationException
protected int getWordEnd(RTextArea textArea, int offs) throws BadLocationException
getWordEnd
in class RTextAreaEditorKit.DumbCompleteWordAction
BadLocationException
protected int getWordStart(RTextArea textArea, int offs) throws BadLocationException
getWordStart
in class RTextAreaEditorKit.DumbCompleteWordAction
BadLocationException
protected boolean isAcceptablePrefix(String prefix)
isAcceptablePrefix
in class RTextAreaEditorKit.DumbCompleteWordAction
prefix
- The prefix characters before the caret.Copyright © 2003–2015. All rights reserved.