public class PovrayDoubleClickStrategy
extends java.lang.Object
Strategy for handling double clicks.
The word below the double click is selected, and all other occurrences of the very same text are highlighted using annotations.
Modifier and Type | Field and Description |
---|---|
protected ITextViewer |
fText |
Constructor and Description |
---|
PovrayDoubleClickStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
doubleClicked(ITextViewer part) |
protected boolean |
selectComment(int caretPos)
Select
|
protected boolean |
selectWord(int caretPos)
Selects the word under the current position
|
public void doubleClicked(ITextViewer part)
protected boolean selectComment(int caretPos)
caretPos
- protected boolean selectWord(int caretPos)
caretPos
- The position of the wordtrue
if a word was selected,
false
otherwise.