|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.lpex.alef.contentassist.ContextInformationValidator
public final class ContextInformationValidator
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,
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 |
---|
public ContextInformationValidator(IContentAssistProcessor processor)
processor
- the processor to be used for validationMethod Detail |
---|
public void install(IContextInformation contextInformation, ITextViewer viewer, LpexDocumentLocation location)
install
in interface IContextInformationValidator
contextInformation
- the context information which this validator should checkviewer
- the LpexTextViewer on which the information is presentedlocation
- the document location for which the information has been
computedIContextInformationValidator.install(IContextInformation,ITextViewer,LpexDocumentLocation)
public boolean isContextInformationValid(LpexDocumentLocation location)
isContextInformationValid
in interface IContextInformationValidator
location
- the current document location
true
if the information is also valid at the given
document locationIContextInformationValidator.isContextInformationValid(LpexDocumentLocation)
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |