Interface IContextInformationPresenter
-
- All Known Subinterfaces:
ISubjectControlContextInformationPresenter
public interface IContextInformationPresenter
A context information presenter determines the presentation of context information depending on a given document position.The interface can be implemented by clients.
- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
install(IContextInformation info, ITextViewer viewer, int offset)
Installs this presenter for the given context information.boolean
updatePresentation(int offset, TextPresentation presentation)
Updates the given presentation of the given context information at the given document position.
-
-
-
Method Detail
-
install
void install(IContextInformation info, ITextViewer viewer, int offset)
Installs this presenter for the given context information.- Parameters:
info
- the context information which this presenter should styleviewer
- the text viewer on which the information is presentedoffset
- the document offset for which the information has been computed
-
updatePresentation
boolean updatePresentation(int offset, TextPresentation presentation)
Updates the given presentation of the given context information at the given document position. Returns whether update changed the presentation.- Parameters:
offset
- the current offset within the documentpresentation
- the presentation to be updated- Returns:
true
if the given presentation has been changed
-
-