|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.contentassist.ContextInformationValidator
A default 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)
Creates a new context information validator which is ready to be installed on a particular context information. |
Method Summary | |
void |
install(IContextInformation contextInformation,
ITextViewer viewer,
int position)
Installs this validator for the given context information. |
boolean |
isContextInformationValid(int position)
Returns whether the information this validator is installed on is still valid at the given document position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextInformationValidator(IContentAssistProcessor processor)
Method Detail |
public void install(IContextInformation contextInformation, ITextViewer viewer, int position)
IContextInformationValidator
install
in interface IContextInformationValidator
contextInformation
- the context information which this validator should checkviewer
- the text viewer on which the information is presentedposition
- the document position for which the information has been computedpublic boolean isContextInformationValid(int position)
IContextInformationValidator
isContextInformationValid
in interface IContextInformationValidator
position
- the current position within the document
true
if the information also valid at the given document position
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |