protected class AbstractTextEditor.LineStartAction extends TextNavigationAction
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 and Description |
|---|
AbstractTextEditor.LineStartAction(StyledText textWidget,
boolean doSelect)
Creates a new line start action.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getLineStartPosition(IDocument document,
String line,
int length,
int offset)
Computes the offset of the line start position.
|
void |
run()
The default implementation of this
IAction method does
nothing. |
addPropertyChangeListener, fireSelectionChanged, fireSelectionChanged, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getTextWidget, getToolTipText, isChecked, isEnabled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextconvertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, isHandled, notifyResult, removeAcceleratorText, removeMnemonicsfirePropertyChange, firePropertyChangeaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic AbstractTextEditor.LineStartAction(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 selectedprotected int getLineStartPosition(IDocument document, String line, int length, int offset)
document - The document where to compute the line start positionline - The line to determine the start position oflength - The length of the lineoffset - The caret position in the documentpublic void run()
ActionIAction 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 IActionrun in class TextNavigationActionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.