org.eclipse.cdt.internal.ui.text.c.hover
Class AbstractCEditorTextHover

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.text.c.hover.AbstractCEditorTextHover
All Implemented Interfaces:
ICEditorTextHover, org.eclipse.jface.text.ITextHover, org.eclipse.jface.text.ITextHoverExtension
Direct Known Subclasses:
AbstractAnnotationHover, BestMatchHover, CDocHover, CEditorTextHoverProxy, CSourceHover

public abstract class AbstractCEditorTextHover
extends java.lang.Object
implements ICEditorTextHover, org.eclipse.jface.text.ITextHoverExtension

AbstractCEditorTextHover Abstract class for providing hover information for C elements.


Constructor Summary
AbstractCEditorTextHover()
           
 
Method Summary
 org.eclipse.jface.text.IInformationControlCreator getHoverControlCreator()
           
abstract  java.lang.String getHoverInfo(org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.IRegion hoverRegion)
           
 org.eclipse.jface.text.IRegion getHoverRegion(org.eclipse.jface.text.ITextViewer textViewer, int offset)
           
 void setEditor(org.eclipse.ui.IEditorPart editor)
          Sets the editor on which the hover is shown.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCEditorTextHover

public AbstractCEditorTextHover()
Method Detail

setEditor

public void setEditor(org.eclipse.ui.IEditorPart editor)
Description copied from interface: ICEditorTextHover
Sets the editor on which the hover is shown.

Specified by:
setEditor in interface ICEditorTextHover
Parameters:
editor - the editor on which the hover popup should be shown

getHoverRegion

public org.eclipse.jface.text.IRegion getHoverRegion(org.eclipse.jface.text.ITextViewer textViewer,
                                                     int offset)
Specified by:
getHoverRegion in interface org.eclipse.jface.text.ITextHover

getHoverInfo

public abstract java.lang.String getHoverInfo(org.eclipse.jface.text.ITextViewer textViewer,
                                              org.eclipse.jface.text.IRegion hoverRegion)
Specified by:
getHoverInfo in interface org.eclipse.jface.text.ITextHover

getHoverControlCreator

public org.eclipse.jface.text.IInformationControlCreator getHoverControlCreator()
Specified by:
getHoverControlCreator in interface org.eclipse.jface.text.ITextHoverExtension