protected abstract class XtextEditor.PreviousSubWordAction
extends org.eclipse.ui.texteditor.TextNavigationAction
| Modifier and Type | Field and Description |
|---|---|
protected CommonWordIterator |
fIterator |
| Modifier | Constructor and Description |
|---|---|
protected |
XtextEditor.PreviousSubWordAction(int code)
Creates a new previous sub-word action.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
findPreviousPosition(int position)
Finds the previous position before 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, setToolTipTextconvertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getActionDefinitionId, getId, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setActionDefinitionId, setIdfirePropertyChange, firePropertyChangeprotected CommonWordIterator fIterator
protected XtextEditor.PreviousSubWordAction(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.IActionrun in class org.eclipse.ui.texteditor.TextNavigationActionprotected int findPreviousPosition(int position)
position - the current positionprotected abstract void setCaretPosition(int position)
position.position - Position where the action should move the caretCopyright © 2016. All Rights Reserved.