public class OQLContentAssistantProcessor extends Object implements IContentAssistProcessor
| Constructor and Description |
|---|
OQLContentAssistantProcessor(SuggestionProvider suggestionProvider,
ContextExtractor extractor)
Base constructor that initializes suggestion provider and extractor.
|
| Modifier and Type | Method and Description |
|---|---|
ICompletionProposal[] |
computeCompletionProposals(ITextViewer arg0,
int arg1)
Asks the extractor to get the context, then gets the list of suggestions
through the provider and builds the ICompletionProposal array to be
returned.
|
IContextInformation[] |
computeContextInformation(ITextViewer arg0,
int arg1) |
char[] |
getCompletionProposalAutoActivationCharacters() |
char[] |
getContextInformationAutoActivationCharacters() |
IContextInformationValidator |
getContextInformationValidator() |
String |
getErrorMessage() |
IContextInformation[] |
getLastContextInformation() |
void |
setLastContextInformation(IContextInformation[] last) |
public OQLContentAssistantProcessor(SuggestionProvider suggestionProvider, ContextExtractor extractor)
suggestionProvider - extractor - public ICompletionProposal[] computeCompletionProposals(ITextViewer arg0, int arg1)
computeCompletionProposals in interface IContentAssistProcessorarg0 - is the text viewer we are working onarg1 - is the current position.public IContextInformation[] computeContextInformation(ITextViewer arg0, int arg1)
computeContextInformation in interface IContentAssistProcessorpublic char[] getCompletionProposalAutoActivationCharacters()
getCompletionProposalAutoActivationCharacters in interface IContentAssistProcessorpublic char[] getContextInformationAutoActivationCharacters()
getContextInformationAutoActivationCharacters in interface IContentAssistProcessorpublic IContextInformationValidator getContextInformationValidator()
getContextInformationValidator in interface IContentAssistProcessorpublic String getErrorMessage()
getErrorMessage in interface IContentAssistProcessorpublic IContextInformation[] getLastContextInformation()
public void setLastContextInformation(IContextInformation[] last)