public class AbstractWordAwareDoubleClickStrategy
extends org.eclipse.jface.text.DefaultTextDoubleClickStrategy
Customized DefaultTextDoubleClickStrategy
that uses a word iterator instead
of a plain break iterator
to tokenize the document
content. It is based on the plain text content of the document, e.g. terminal tokens are
not taken into account.
Constructor and Description |
---|
AbstractWordAwareDoubleClickStrategy() |
Modifier and Type | Method and Description |
---|---|
protected CommonBreakIterator |
createBreakIterator() |
protected org.eclipse.jface.text.IRegion |
findWord(org.eclipse.jface.text.IDocument document,
int offset) |
public AbstractWordAwareDoubleClickStrategy()
protected org.eclipse.jface.text.IRegion findWord(org.eclipse.jface.text.IDocument document, int offset)
findWord
in class org.eclipse.jface.text.DefaultTextDoubleClickStrategy
protected CommonBreakIterator createBreakIterator()