public final class SubjectControlContextInformationValidator extends Object implements ISubjectControlContextInformationValidator
SubjectControlContextInformationValidator
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 and Description |
---|
SubjectControlContextInformationValidator(IContentAssistProcessor processor)
Deprecated.
Creates a new context information validator which is ready to be installed on
a particular context information.
|
Modifier and Type | Method and Description |
---|---|
void |
install(IContextInformation contextInformation,
IContentAssistSubjectControl contentAssistSubjectControl,
int offset)
Deprecated.
Installs this validator for the given context information.
|
void |
install(IContextInformation contextInformation,
ITextViewer viewer,
int offset)
Deprecated.
Installs this validator for the given context information.
|
boolean |
isContextInformationValid(int offset)
Deprecated.
Returns whether the information this validator is installed on is still valid
at the given document position.
|
public SubjectControlContextInformationValidator(IContentAssistProcessor processor)
processor
- the processor to be used for validationpublic void install(IContextInformation contextInformation, ITextViewer viewer, int offset)
IContextInformationValidator
install
in interface IContextInformationValidator
contextInformation
- the context information which this validator should checkviewer
- the text viewer on which the information is presentedoffset
- the document offset for which the information has been computedpublic void install(IContextInformation contextInformation, IContentAssistSubjectControl contentAssistSubjectControl, int offset)
ISubjectControlContextInformationValidator
install
in interface ISubjectControlContextInformationValidator
contextInformation
- the context information which this validator should checkcontentAssistSubjectControl
- the content assist subject controloffset
- the document offset for which the information
has been computedpublic boolean isContextInformationValid(int offset)
IContextInformationValidator
isContextInformationValid
in interface IContextInformationValidator
offset
- the current offset within the documenttrue
if the information also valid at the given document position
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.