protected class XtextEditor.SmartLineStartAction
extends org.eclipse.ui.texteditor.TextNavigationAction
Constructor and Description |
---|
XtextEditor.SmartLineStartAction(org.eclipse.swt.custom.StyledText textWidget,
boolean doSelect)
Creates a new smart line start action
|
Modifier and Type | Method and Description |
---|---|
protected int |
getLineStartPosition(org.eclipse.jface.text.IDocument document,
java.lang.String line,
int length,
int offset) |
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
public XtextEditor.SmartLineStartAction(org.eclipse.swt.custom.StyledText textWidget, boolean doSelect)
textWidget
- the styled text widgetdoSelect
- a boolean flag which tells if the text up to the beginning of the line should be selected