Eclipse Platform
2.0

org.eclipse.jface.text.contentassist
Interface IContextInformationPresenter


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
 void install(IContextInformation info, ITextViewer viewer, int documentPosition)
          Installs this presenter for the given context information.
 boolean updatePresentation(int documentPosition, TextPresentation presentation)
          Updates the given presentation of the given context information at the given document position.
 

Method Detail

install

public void install(IContextInformation info,
                    ITextViewer viewer,
                    int documentPosition)
Installs this presenter for the given context information.

Parameters:
info - the context information which this presenter should style
viewer - the text viewer on which the information is presented
documentPosition - the document position for which the information has been computed

updatePresentation

public boolean updatePresentation(int documentPosition,
                                  TextPresentation presentation)
Updates the given presentation of the given context information at the given document position. Returns whether update changed the presentation.

Parameters:
documentPosition - the current position within the document
presentation - the presentation to be updated
Returns:
true if the given presentation has been changed

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.