org.sintef.mofscript.editor
Class MofScriptDoubleClickStrategy
java.lang.Object
org.sintef.mofscript.editor.MofScriptDoubleClickStrategy
- All Implemented Interfaces:
- org.eclipse.jface.text.ITextDoubleClickStrategy
public class MofScriptDoubleClickStrategy
- extends java.lang.Object
- implements org.eclipse.jface.text.ITextDoubleClickStrategy
A Double click strategy for MOFScript
- Author:
- jol
Field Summary |
protected org.eclipse.jface.text.ITextViewer |
fText
|
Method Summary |
void |
doubleClicked(org.eclipse.jface.text.ITextViewer part)
Handle double clicks |
protected boolean |
selectQuotes(int caretPos)
Selecting comments |
protected boolean |
selectWord(int caretPos)
Selects a word |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fText
protected org.eclipse.jface.text.ITextViewer fText
MofScriptDoubleClickStrategy
public MofScriptDoubleClickStrategy()
doubleClicked
public void doubleClicked(org.eclipse.jface.text.ITextViewer part)
- Handle double clicks
- Specified by:
doubleClicked
in interface org.eclipse.jface.text.ITextDoubleClickStrategy
selectQuotes
protected boolean selectQuotes(int caretPos)
- Selecting comments
- Parameters:
caretPos
-
- Returns:
selectWord
protected boolean selectWord(int caretPos)
- Selects a word
- Parameters:
caretPos
-
- Returns: