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