|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides information related to the content of a text viewer.
Clients may implement this interface.
ITextViewer
Method Summary | |
String |
getInformation(ITextViewer textViewer,
IRegion subject)
Deprecated. As of 2.1, replaced by IInformationProviderExtension.getInformation2(ITextViewer, IRegion) |
IRegion |
getSubject(ITextViewer textViewer,
int offset)
Returns the region of the text viewer's document close to the given offset that contains a subject about which information can be provided. |
Method Detail |
public IRegion getSubject(ITextViewer textViewer, int offset)
For example, if information can be provided on a per code block basis, the offset should be used to find the enclosing code block and the source range of the block should be returned.
textViewer
- the text viewer in which informationhas been requestedoffset
- the offset at which information has been requestedpublic String getInformation(ITextViewer textViewer, IRegion subject)
IInformationProviderExtension.getInformation2(ITextViewer, IRegion)
null
if
no information is available. It depends on the concrete configuration in which
format the information is to be provided. For example, information presented
in an information control displaying HTML, should be provided in HTML.textViewer
- the viewer in whose document the subject is containedsubject
- the text region constituting the information subjectIInformationPresenter
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |