org.eclipse.datatools.enablement.ingres.internal.ui.sqleditor.texthover
Class IngresSQLEditorTextHover
java.lang.Object
org.eclipse.datatools.sqltools.sqleditor.sql.AbstractSQLEditorTextHover
org.eclipse.datatools.enablement.ingres.internal.ui.sqleditor.texthover.IngresSQLEditorTextHover
- All Implemented Interfaces:
- org.eclipse.jface.text.ITextHover, org.eclipse.jface.text.ITextHoverExtension
public class IngresSQLEditorTextHover
- extends AbstractSQLEditorTextHover
Provides hovering information for a given sql document. Uses results from sql
parser, so the sql needs to be valid.
- Author:
- enrico.schenk@ingres.com
|
Method Summary |
static Node |
findNode(org.eclipse.jface.text.IDocument document,
int offset,
Node rootNode,
boolean inclusive)
|
java.lang.String |
getHoverInfo(org.eclipse.jface.text.ITextViewer textViewer,
org.eclipse.jface.text.IRegion hoverRegion)
|
void |
setEditor(org.eclipse.ui.IEditorPart editor)
Associates a SQL editor with this hover. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VENDOR_INGRES
public static final java.lang.String VENDOR_INGRES
- See Also:
- Constant Field Values
IngresSQLEditorTextHover
public IngresSQLEditorTextHover()
setEditor
public void setEditor(org.eclipse.ui.IEditorPart editor)
- Description copied from class:
AbstractSQLEditorTextHover
- Associates a SQL editor with this hover. Subclass can cache it for later use.
- Specified by:
setEditor in class AbstractSQLEditorTextHover
getHoverInfo
public java.lang.String getHoverInfo(org.eclipse.jface.text.ITextViewer textViewer,
org.eclipse.jface.text.IRegion hoverRegion)
findNode
public static Node findNode(org.eclipse.jface.text.IDocument document,
int offset,
Node rootNode,
boolean inclusive)