Eclipse Platform
2.0

org.eclipse.jface.text.contentassist
Interface IContextInformationValidator

All Known Implementing Classes:
ContextInformationValidator

public interface IContextInformationValidator

A context information validator is used to determine if a displayed context information is still valid or should be dismissed. The interface can be implemented by clients.

Because of http://dev.eclipse.org/bugs/show_bug.cgi?id=13926 implementers of this interface are also implementing IContextInformationPresenter.

See Also:
IContextInformationPresenter

Method Summary
 void install(IContextInformation info, ITextViewer viewer, int documentPosition)
          Installs this validator for the given context information.
 boolean isContextInformationValid(int documentPosition)
          Returns whether the information this validator is installed on is still valid at the given document position.
 

Method Detail

install

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

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

isContextInformationValid

public boolean isContextInformationValid(int documentPosition)
Returns whether the information this validator is installed on is still valid at the given document position.

Parameters:
documentPosition - the current position within the document
Returns:
true if the information also valid at the given document position

Eclipse Platform
2.0

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