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

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.text.c.hover.AbstractCEditorTextHover
      extended by org.eclipse.cdt.internal.ui.text.c.hover.CEditorTextHoverProxy
All Implemented Interfaces:
ICEditorTextHover, org.eclipse.jface.text.information.IInformationProviderExtension2, org.eclipse.jface.text.ITextHover, org.eclipse.jface.text.ITextHoverExtension

public class CEditorTextHoverProxy
extends AbstractCEditorTextHover
implements org.eclipse.jface.text.ITextHoverExtension, org.eclipse.jface.text.information.IInformationProviderExtension2

CEditorTexHoverProxy


Constructor Summary
CEditorTextHoverProxy(CEditorTextHoverDescriptor descriptor, org.eclipse.ui.IEditorPart editor)
           
 
Method Summary
 org.eclipse.jface.text.IInformationControlCreator getHoverControlCreator()
           
 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)
           
 org.eclipse.jface.text.IInformationControlCreator getInformationPresenterControlCreator()
           
 boolean isEnabled()
           
 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

CEditorTextHoverProxy

public CEditorTextHoverProxy(CEditorTextHoverDescriptor descriptor,
                             org.eclipse.ui.IEditorPart editor)
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
Overrides:
setEditor in class AbstractCEditorTextHover
Parameters:
editor - the editor on which the hover popup should be shown

isEnabled

public boolean isEnabled()

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
Overrides:
getHoverRegion in class AbstractCEditorTextHover

getHoverInfo

public 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
Specified by:
getHoverInfo in class AbstractCEditorTextHover

getHoverControlCreator

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

getInformationPresenterControlCreator

public org.eclipse.jface.text.IInformationControlCreator getInformationPresenterControlCreator()
Specified by:
getInformationPresenterControlCreator in interface org.eclipse.jface.text.information.IInformationProviderExtension2