public interface IAnnotationHoverExtension
IAnnotationHover
for
IInformationControlCreator
,
IAnnotationHover
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleMouseCursor()
Returns whether the provided information control can interact with the mouse cursor.
|
IInformationControlCreator |
getHoverControlCreator()
Returns the hover control creator of this annotation hover.
|
Object |
getHoverInfo(ISourceViewer sourceViewer,
ILineRange lineRange,
int visibleNumberOfLines)
Returns the object which should be presented in the a
hover popup window.
|
ILineRange |
getHoverLineRange(ISourceViewer viewer,
int lineNumber)
Returns the range of lines that include the given line number for which
the same hover information is valid.
|
IInformationControlCreator getHoverControlCreator()
boolean canHandleMouseCursor()
true
if the mouse cursor can be handledObject getHoverInfo(ISourceViewer sourceViewer, ILineRange lineRange, int visibleNumberOfLines)
sourceViewer
- the source viewer this hover is registered withlineRange
- the line range for which information is requestedvisibleNumberOfLines
- the number of visible linesnull
if no such information existsILineRange getHoverLineRange(ISourceViewer viewer, int lineNumber)
viewer
- the viewer which the hover is queried forlineNumber
- the line number of the line for which a hover is displayed fornull
for no range
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.