Class UnoidlDoubleClickStrategy
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.editors.idl.UnoidlDoubleClickStrategy
-
- All Implemented Interfaces:
org.eclipse.jface.text.ITextDoubleClickStrategy
public class UnoidlDoubleClickStrategy extends java.lang.Object implements org.eclipse.jface.text.ITextDoubleClickStrategyThis class is responsible for the selection of words using double-clics in the UNO-IDL editor.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.jface.text.ITextViewermText
-
Constructor Summary
Constructors Constructor Description UnoidlDoubleClickStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoubleClicked(org.eclipse.jface.text.ITextViewer pPart)protected booleanselectComment(int pCaretPos)Test if the caret is positioned in a comment partition.protected booleanselectWord(int pCaretPos)Test if the caret is positioned in a word partition.
-
-
-
Method Detail
-
doubleClicked
public void doubleClicked(org.eclipse.jface.text.ITextViewer pPart)
- Specified by:
doubleClickedin interfaceorg.eclipse.jface.text.ITextDoubleClickStrategy
-
selectComment
protected boolean selectComment(int pCaretPos)
Test if the caret is positioned in a comment partition.- Parameters:
pCaretPos- the caret position- Returns:
trueif the cursor is in a comment,falseotherwise
-
selectWord
protected boolean selectWord(int pCaretPos)
Test if the caret is positioned in a word partition.- Parameters:
pCaretPos- the caret position- Returns:
trueif the cursor is in a word,falseortherwise
-
-