Class DefaultTextDoubleClickStrategy

    • Constructor Detail

      • DefaultTextDoubleClickStrategy

        public DefaultTextDoubleClickStrategy()
        Creates a new default text double click strategy.
    • Method Detail

      • findExtendedDoubleClickSelection

        protected IRegion findExtendedDoubleClickSelection​(IDocument document,
                                                           int offset)
        Tries to find a suitable double click selection for the given offset.

        Note: This method must return null if it simply selects the word at the given offset.

        Parameters:
        document - the document
        offset - the offset
        Returns:
        the selection or null if none to indicate simple word selection
        Since:
        3.5
      • findWord

        protected IRegion findWord​(IDocument document,
                                   int offset)
        Tries to find the word at the given offset.
        Parameters:
        document - the document
        offset - the offset
        Returns:
        the word or null if none
        Since:
        3.5