public class TextViewerJoinLinesAction extends TextViewerAction
| Constructor and Description |
|---|
TextViewerJoinLinesAction(ResourceBundle bundle,
String prefix,
org.eclipse.jface.text.ITextViewer viewer,
String joint)
Creates a line joining action.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustHighlightRange(org.eclipse.jface.text.ITextViewer viewer,
int offset,
int length)
Adjusts the highlight range so that at least the specified range
is highlighted.
|
protected boolean |
isVisible(org.eclipse.jface.text.ITextViewer viewer,
int offset,
int length) |
void |
run() |
void |
update()
Always enables this action if it is connected to a text editor.
|
canModifyViewer, getSelection, getTextViewer, setViewergetString, initialize, setHelpContextIdconvertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerpublic TextViewerJoinLinesAction(ResourceBundle bundle, String prefix, org.eclipse.jface.text.ITextViewer viewer, String joint)
bundle - the resource bundle for UI stringsprefix - the prefix for the property keys into bundleviewer - the viewerjoint - the string to put between the linespublic void run()
run in interface org.eclipse.jface.action.IActionrun in class org.eclipse.jface.action.Actionprotected void adjustHighlightRange(org.eclipse.jface.text.ITextViewer viewer,
int offset,
int length)
Subclasses may re-implement this method.
viewer - offset - the offset of the range which at least should be highlightedlength - the length of the range which at least should be highlightedprotected boolean isVisible(org.eclipse.jface.text.ITextViewer viewer,
int offset,
int length)
public void update()
TextViewerActionnull,
the action is disabled. Subclasses may override.update in interface org.eclipse.ui.texteditor.IUpdateupdate in class TextViewerActionCopyright © 2016. All Rights Reserved.