Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.alef.contentassist
Class ContextInformationValidator

java.lang.Object
  extended bycom.ibm.lpex.alef.contentassist.ContextInformationValidator

All Implemented Interfaces:
IContextInformationValidator


public final class ContextInformationValidator
extends Object
implements IContextInformationValidator

A default LPEX implementation of the IContextInfomationValidator interface. This implementation determines whether the information is valid by asking the content-assist processor for all context information objects for the current position. If the currently displayed information is in the result set, the context information is considered valid.


Constructor Summary
ContextInformationValidator(IContentAssistProcessor processor)
          Create a new context information validator which is ready to be installed on a particular context information.
 
Method Summary
 void install(IContextInformation contextInformation, org.eclipse.jface.text.ITextViewer viewer, LpexDocumentLocation location)
          Install this validator for the given context information.
 boolean isContextInformationValid(LpexDocumentLocation location)
          Return whether the information that this validator is installed on, is still valid at the current document location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

 

 

ContextInformationValidator

public ContextInformationValidator(IContentAssistProcessor processor)

Create a new context information validator which is ready to be installed on a particular context information.

Parameters:
processor - the processor to be used for validation
Method Detail

 

 

install

public void install(IContextInformation contextInformation,
                    org.eclipse.jface.text.ITextViewer viewer,
                    LpexDocumentLocation location)

Install this validator for the given context information.

Specified by:
install in interface IContextInformationValidator

Parameters:
contextInformation - the context information which this validator should check
viewer - the LpexTextViewer on which the information is presented
location - the document location for which the information has been computed
See Also:
IContextInformationValidator.install(IContextInformation,ITextViewer,LpexDocumentLocation)


 

 

isContextInformationValid

public boolean isContextInformationValid(LpexDocumentLocation location)

Return whether the information that this validator is installed on, is still valid at the current document location.

Specified by:
isContextInformationValid in interface IContextInformationValidator

Parameters:
location - the current document location
Returns:
true if the information is also valid at the given document location
See Also:
IContextInformationValidator.isContextInformationValid(LpexDocumentLocation)


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD