com.ibm.lab.soln.sqleditor.sql
Class SQLDoubleClickStrategy

java.lang.Object
  |
  +--com.ibm.lab.soln.sqleditor.sql.SQLDoubleClickStrategy
All Implemented Interfaces:
org.eclipse.jface.text.ITextDoubleClickStrategy

public class SQLDoubleClickStrategy
extends java.lang.Object
implements org.eclipse.jface.text.ITextDoubleClickStrategy

Process double clicks in the SQL content.


Field Summary
protected  int fEndPos
           
protected  int fPos
           
protected  int fStartPos
           
protected  org.eclipse.jface.text.ITextViewer fText
           
 
Constructor Summary
SQLDoubleClickStrategy()
          Constructor for SQLDoubleClickStrategy.
 
Method Summary
 void doubleClicked(org.eclipse.jface.text.ITextViewer viewer)
          A simple method that selects the word when double clicked.
protected  boolean matchWord()
          Select the word at the current selection.
protected  void selectWord()
          Select the word at the current selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fEndPos

protected int fEndPos

fPos

protected int fPos

fStartPos

protected int fStartPos

fText

protected org.eclipse.jface.text.ITextViewer fText
Constructor Detail

SQLDoubleClickStrategy

public SQLDoubleClickStrategy()
Constructor for SQLDoubleClickStrategy.
Method Detail

doubleClicked

public void doubleClicked(org.eclipse.jface.text.ITextViewer viewer)
A simple method that selects the word when double clicked.
Specified by:
doubleClicked in interface org.eclipse.jface.text.ITextDoubleClickStrategy
See Also:
ITextDoubleClickStrategy.doubleClicked(ITextViewer)

matchWord

protected boolean matchWord()
Select the word at the current selection. Return true if successful, otherwise false.

selectWord

protected void selectWord()
Select the word at the current selection.