|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.contentassist.SubjectControlContextInformationValidator
public final class SubjectControlContextInformationValidator
A default implementation of the 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 Summary | |
|---|---|
SubjectControlContextInformationValidator(IContentAssistProcessor processor)
Deprecated. Creates a new context information validator which is ready to be installed on a particular context information. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubjectControlContextInformationValidator(IContentAssistProcessor processor)
processor - the processor to be used for validation| Method Detail |
|---|
public void install(IContextInformation contextInformation,
ITextViewer viewer,
int offset)
IContextInformationValidator
install in interface IContextInformationValidatorcontextInformation - 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
public void install(IContextInformation contextInformation,
IContentAssistSubjectControl contentAssistSubjectControl,
int offset)
ISubjectControlContextInformationValidator
install in interface ISubjectControlContextInformationValidatorcontextInformation - 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 IContextInformationValidatoroffset - the current offset within the document
true if the information also valid at the given document position
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.