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 IContentAssistProcessor
arg0
- is the text viewer we are working onarg1
- is the current position.public IContextInformation[] computeContextInformation(ITextViewer arg0, int arg1)
computeContextInformation
in interface IContentAssistProcessor
public char[] getCompletionProposalAutoActivationCharacters()
getCompletionProposalAutoActivationCharacters
in interface IContentAssistProcessor
public char[] getContextInformationAutoActivationCharacters()
getContextInformationAutoActivationCharacters
in interface IContentAssistProcessor
public IContextInformationValidator getContextInformationValidator()
getContextInformationValidator
in interface IContentAssistProcessor
public String getErrorMessage()
getErrorMessage
in interface IContentAssistProcessor
public IContextInformation[] getLastContextInformation()
public void setLastContextInformation(IContextInformation[] last)