|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.text.DefaultTextDoubleClickStrategy org.eclipse.xtext.ui.editor.doubleClicking.AbstractWordAwareDoubleClickStrategy org.eclipse.xtext.ui.editor.doubleClicking.AbstractPartitionDoubleClickSelector
public abstract class AbstractPartitionDoubleClickSelector
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
,
PartitionDoubleClickSelector
Constructor Summary | |
---|---|
protected |
AbstractPartitionDoubleClickSelector(java.lang.String partitioning)
Creates a new partition double click selector for the given document partitioning. |
Method Summary | |
---|---|
protected org.eclipse.jface.text.IRegion |
findExtendedDoubleClickSelection(org.eclipse.jface.text.IDocument document,
int offset)
Tries to find a suitable double click selection for the given offset. |
protected org.eclipse.jface.text.IRegion |
getSelectedRegion(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.ITypedRegion completePartition)
|
Methods inherited from class org.eclipse.xtext.ui.editor.doubleClicking.AbstractWordAwareDoubleClickStrategy |
---|
createBreakIterator, findWord |
Methods inherited from class org.eclipse.jface.text.DefaultTextDoubleClickStrategy |
---|
doubleClicked |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractPartitionDoubleClickSelector(java.lang.String partitioning)
partitioning
- the document partitioningMethod Detail |
---|
protected org.eclipse.jface.text.IRegion findExtendedDoubleClickSelection(org.eclipse.jface.text.IDocument document, int offset)
org.eclipse.jface.text.DefaultTextDoubleClickStrategy
Note: This method must return null
if it simply selects the word at
the given offset.
findExtendedDoubleClickSelection
in class org.eclipse.jface.text.DefaultTextDoubleClickStrategy
document
- the documentoffset
- the offset
null
if none to indicate simple word selectionprotected 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |