org.eclipse.datatools.enablement.ingres.internal.ui.sqleditor.texthover
Class IngresSQLEditorTextHover

java.lang.Object
  extended by org.eclipse.datatools.sqltools.sqleditor.sql.AbstractSQLEditorTextHover
      extended by 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

Field Summary
static java.lang.String VENDOR_INGRES
           
 
Constructor Summary
IngresSQLEditorTextHover()
           
 
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 org.eclipse.datatools.sqltools.sqleditor.sql.AbstractSQLEditorTextHover
getHoverControlCreator, getHoverRegion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VENDOR_INGRES

public static final java.lang.String VENDOR_INGRES
See Also:
Constant Field Values
Constructor Detail

IngresSQLEditorTextHover

public IngresSQLEditorTextHover()
Method Detail

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)