Package org.eclipse.jface.contentassist
Class SubjectControlContextInformationValidator
- java.lang.Object
-
- org.eclipse.jface.contentassist.SubjectControlContextInformationValidator
-
- All Implemented Interfaces:
ISubjectControlContextInformationValidator,IContextInformationValidator
@Deprecated public final class SubjectControlContextInformationValidator extends Object implements ISubjectControlContextInformationValidator
Deprecated.As of 3.2, replaced by Platform UI's field assist supportA default implementation of theSubjectControlContextInformationValidatorinterface. 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.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description SubjectControlContextInformationValidator(IContentAssistProcessor processor)Deprecated.Creates a new context information validator which is ready to be installed on a particular context information.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidinstall(IContextInformation contextInformation, IContentAssistSubjectControl contentAssistSubjectControl, int offset)Deprecated.Installs this validator for the given context information.voidinstall(IContextInformation contextInformation, ITextViewer viewer, int offset)Deprecated.Installs this validator for the given context information.booleanisContextInformationValid(int offset)Deprecated.Returns whether the information this validator is installed on is still valid at the given document position.
-
-
-
Constructor Detail
-
SubjectControlContextInformationValidator
public SubjectControlContextInformationValidator(IContentAssistProcessor processor)
Deprecated.Creates 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, ITextViewer viewer, int offset)
Deprecated.Description copied from interface:IContextInformationValidatorInstalls this validator for the given context information.- Specified by:
installin interfaceIContextInformationValidator- Parameters:
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 computed
-
install
public void install(IContextInformation contextInformation, IContentAssistSubjectControl contentAssistSubjectControl, int offset)
Deprecated.Description copied from interface:ISubjectControlContextInformationValidatorInstalls this validator for the given context information.- Specified by:
installin interfaceISubjectControlContextInformationValidator- Parameters:
contextInformation- the context information which this validator should checkcontentAssistSubjectControl- the content assist subject controloffset- the document offset for which the information has been computed
-
isContextInformationValid
public boolean isContextInformationValid(int offset)
Deprecated.Description copied from interface:IContextInformationValidatorReturns whether the information this validator is installed on is still valid at the given document position.- Specified by:
isContextInformationValidin interfaceIContextInformationValidator- Parameters:
offset- the current offset within the document- Returns:
trueif the information also valid at the given document position
-
-