|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.commands.common.EventManager org.eclipse.jface.action.AbstractAction org.eclipse.jface.action.Action org.eclipse.ui.texteditor.TextNavigationAction org.eclipse.xtext.ui.editor.XtextEditor.PreviousSubWordAction
protected abstract class XtextEditor.PreviousSubWordAction
Text navigation action to navigate to the previous sub-word.
Field Summary | |
---|---|
protected CommonWordIterator |
fIterator
|
Fields inherited from interface org.eclipse.jface.action.IAction |
---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
---|---|
protected |
XtextEditor.PreviousSubWordAction(int code)
Creates a new previous sub-word action. |
Method Summary | |
---|---|
protected int |
findPreviousPosition(int position)
Finds the previous position before the given position. |
void |
run()
The default implementation of this IAction method does
nothing. |
protected abstract void |
setCaretPosition(int position)
Sets the caret position to the sub-word boundary given with position . |
Methods inherited from class org.eclipse.ui.texteditor.TextNavigationAction |
---|
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 |
Methods inherited from class org.eclipse.jface.action.Action |
---|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getActionDefinitionId, getId, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setActionDefinitionId, setId |
Methods inherited from class org.eclipse.jface.action.AbstractAction |
---|
firePropertyChange, firePropertyChange |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CommonWordIterator fIterator
Constructor Detail |
---|
protected XtextEditor.PreviousSubWordAction(int code)
code
- Action code for the default operation. Must be an action code from @see org.eclipse.swt.custom.ST.Method Detail |
---|
public void run()
org.eclipse.jface.action.Action
IAction
method does
nothing. Subclasses should override this method if they do not need
information from the triggering event, or override
runWithEvent(Event)
if they do.
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.ui.texteditor.TextNavigationAction
protected int findPreviousPosition(int position)
position
- the current position
protected abstract void setCaretPosition(int position)
position
.
position
- Position where the action should move the caret
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |