@Override
    public void doubleClicked(ITextViewer viewer) {
        // Get the viewer we are dealing with.
        fText = viewer;

        // Get the double click location in the document.
        curPos = viewer.getSelectedRange().x;

        if (curPos < 0 || curPos >= fText.getDocument().getLength()) {
            return;
        }

        if (!selectBracketBlock()) {
            selectWord();
        }
    }
Handles a double click action by selecting the current word.

@see org.eclipse.jface.text.ITextDoubleClickStrategy#doubleClicked(ITextViewer)
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLDoubleClickStrategy.java