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 Object implements org.eclipse.jface.text.ITextDoubleClickStrategy
This class is responsible for the selection of words using double-clics in the UNO-IDL editor.
  • Field Details

    • mText

      protected org.eclipse.jface.text.ITextViewer mText
  • Constructor Details

    • UnoidlDoubleClickStrategy

      public UnoidlDoubleClickStrategy()
  • Method Details

    • doubleClicked

      public void doubleClicked(org.eclipse.jface.text.ITextViewer pPart)
      Specified by:
      doubleClicked in interface org.eclipse.jface.text.ITextDoubleClickStrategy
    • selectComment

      protected boolean selectComment(int caretPos)
      Test if the caret is positioned in a comment partition.
      Parameters:
      caretPos - the caret position
      Returns:
      true if the cursor is in a comment, false otherwise
    • selectWord

      protected boolean selectWord(int caretPos)
      Test if the caret is positioned in a word partition.
      Parameters:
      caretPos - the caret position
      Returns:
      true if the cursor is in a word, false ortherwise