|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a hover popup which appears on top of the text viewer with relevant display information. If the text hover does not provide information no hover popup is shown. Any implementer of this interface must be capable of operating in a non-UI thread.
Clients may implement this interface.
ITextViewer
Method Summary | |
String |
getHoverInfo(ITextViewer textViewer,
IRegion hoverRegion)
Returns the text which should be presented if a hover popup is shown for the specified hover region. |
IRegion |
getHoverRegion(ITextViewer textViewer,
int offset)
Returns the text region which should serve as the source of information to compute the hover popup display information. |
Method Detail |
public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion)
getHoverRegion
. If the returned
string is null
or empty no hover popup will be shown.
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 information
public IRegion getHoverRegion(ITextViewer textViewer, int offset)
For example, if hover information can be provided on a per method basis in a source viewer, the offset should be used to find the enclosing method and the source range of the method should be returned.
textViewer
- the viewer on which the hover popup should be shownoffset
- the offset for which the hover request has been issued
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |