|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.DefaultTextDoubleClickStrategy
public class DefaultTextDoubleClickStrategy
Standard implementation of
ITextDoubleClickStrategy
.
Selects words using java.text.BreakIterator
for the default
locale.
BreakIterator
Constructor Summary | |
---|---|
DefaultTextDoubleClickStrategy()
Creates a new default text double click strategy. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTextDoubleClickStrategy()
Method Detail |
---|
public void doubleClicked(ITextViewer text)
ITextDoubleClickStrategy
doubleClicked
in interface ITextDoubleClickStrategy
text
- 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 offset
null
if none to indicate simple word selectionprotected IRegion findWord(IDocument document, int offset)
document
- the documentoffset
- the offset
null
if none
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.