SWT LPEX
v3.0.5

com.ibm.lpex.alef.contentassist
Interface IContextInformationValidator

All Known Implementing Classes:
ContextInformationValidator

public interface IContextInformationValidator

A context information validator is used to determine whether a displayed context information is still valid at the current cursor position, or should be dismissed. The interface can be implemented by clients.

This is the LPEX version of org.eclipse.jface.text.contentassist.IContextInformationValidator.

See Also:
IContextInformationPresenter

Method Summary
 void install(IContextInformation info, ITextViewer viewer, LpexDocumentLocation documentLocation)
          Install this validator for the given context information.
 boolean isContextInformationValid(LpexDocumentLocation documentLocation)
          Return whether the information that this validator is installed on, is still valid at the current document location.
 

Method Detail

install

public void install(IContextInformation info,
                    ITextViewer viewer,
                    LpexDocumentLocation documentLocation)
Install this validator for the given context information.

Parameters:
info - the context information which this validator should check
viewer - the LpexTextViewer on which the information is presented
documentLocation - the document location for which the information has been computed

isContextInformationValid

public boolean isContextInformationValid(LpexDocumentLocation documentLocation)
Return whether the information that this validator is installed on, is still valid at the current document location.

Parameters:
documentLocation - the current document location
Returns:
true if the information is also valid at the given document location

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.