public class DefaultTextDoubleClickStrategy extends Object implements ITextDoubleClickStrategy
ITextDoubleClickStrategy.
Selects words using java.text.BreakIterator for the default
locale.
BreakIterator| Constructor and Description |
|---|
DefaultTextDoubleClickStrategy()
Creates a new default text double click strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doubleClicked(ITextViewer text)
The mouse has been double clicked on the given text viewer.
|
protected IRegion |
findExtendedDoubleClickSelection(IDocument document,
int offset)
Tries to find a suitable double click selection for the given offset.
|
protected IRegion |
findWord(IDocument document,
int offset)
Tries to find the word at the given offset.
|
public DefaultTextDoubleClickStrategy()
public void doubleClicked(ITextViewer text)
ITextDoubleClickStrategydoubleClicked in interface ITextDoubleClickStrategytext - the viewer into which has been double clickedprotected IRegion findExtendedDoubleClickSelection(IDocument document, int offset)
Note: This method must return null if it simply selects the word at
the given offset.
document - the documentoffset - the offsetnull if none to indicate simple word selection
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.