protected abstract class XtextEditor.NextSubWordAction
extends org.eclipse.ui.texteditor.TextNavigationAction
Modifier and Type | Field and Description |
---|---|
protected CommonWordIterator |
fIterator |
Modifier | Constructor and Description |
---|---|
protected |
XtextEditor.NextSubWordAction(int code)
Creates a new next sub-word action.
|
Modifier and Type | Method and Description |
---|---|
protected int |
findNextPosition(int position)
Finds the next position after the given position.
|
void |
run() |
protected abstract void |
setCaretPosition(int position)
Sets the caret position to the sub-word boundary given with
position . |
addPropertyChangeListener, fireSelectionChanged, fireSelectionChanged, getAccelerator, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getImageDescriptor, getMenuCreator, getStyle, getText, getTextWidget, getToolTipText, isChecked, isEnabled, removePropertyChangeListener, runWithEvent, setAccelerator, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setImageDescriptor, setMenuCreator, setText, setToolTipText
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getActionDefinitionId, getId, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setActionDefinitionId, setId
firePropertyChange, firePropertyChange
protected CommonWordIterator fIterator
protected XtextEditor.NextSubWordAction(int code)
code
- Action code for the default operation. Must be an action code from @see org.eclipse.swt.custom.ST.public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.ui.texteditor.TextNavigationAction
protected int findNextPosition(int position)
position
- the current positionprotected abstract void setCaretPosition(int position)
position
.position
- Position where the action should move the caret