public abstract class AbstractPartitionDoubleClickSelector extends AbstractWordAwareDoubleClickStrategy
This strategy treats partition boundaries
in a special way. It allows to select a complete partition at once.
Implementors may override getSelectedRegion(IDocument, ITypedRegion) to customize the
contents of the partition that should be selected.
The implementation was heavily adapted from org.eclipse.jdt.internal.ui.text.java.PartitionDoubleClickSelector
FixedCharCountPartitionDoubleClickSelector| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPartitionDoubleClickSelector(java.lang.String partitioning)
Creates a new partition double click selector for the given document partitioning.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jface.text.IRegion |
findExtendedDoubleClickSelection(org.eclipse.jface.text.IDocument document,
int offset) |
protected org.eclipse.jface.text.IRegion |
getSelectedRegion(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.ITypedRegion completePartition) |
createBreakIterator, findWordprotected AbstractPartitionDoubleClickSelector(java.lang.String partitioning)
partitioning - the document partitioningprotected org.eclipse.jface.text.IRegion findExtendedDoubleClickSelection(org.eclipse.jface.text.IDocument document,
int offset)
findExtendedDoubleClickSelection in class org.eclipse.jface.text.DefaultTextDoubleClickStrategyprotected org.eclipse.jface.text.IRegion getSelectedRegion(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.ITypedRegion completePartition)
throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException