public interface ITextHoverExtension2
ITextHover
.
Provides a way for hovers to return hover-specific information objects.
ITextHover
Modifier and Type | Method and Description |
---|---|
Object |
getHoverInfo2(ITextViewer textViewer,
IRegion hoverRegion)
Returns the information which should be presented when a hover popup is shown
for the specified hover region.
|
Object getHoverInfo2(ITextViewer textViewer, IRegion hoverRegion)
ITextHover.getHoverRegion(ITextViewer, int)
.
If the returned information is null
, no hover popup will be shown.
Note: Implementers have to ensure that ITextHoverExtension.getHoverControlCreator()
returns IInformationControl
s that implement
IInformationControlExtension2
and whose
IInformationControlExtension2.setInput(Object)
can handle the
information objects returned by this method.
Callers should ignore the text returned by ITextHover.getHoverInfo(ITextViewer, IRegion)
.
textViewer
- the viewer on which the hover popup should be shownhoverRegion
- the text range in the viewer which is used to determine
the hover display informationnull
if none available
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.