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
|
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 |
fEndPos
protected int fEndPos
fPos
protected int fPos
fStartPos
protected int fStartPos
fText
protected org.eclipse.jface.text.ITextViewer fText
SQLDoubleClickStrategy
public SQLDoubleClickStrategy()
- Constructor for SQLDoubleClickStrategy.
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.