org.eclipse.mat.ui.snapshot.panes.oql.contentAssist
Class OQLContentAssistantProcessor
java.lang.Object
org.eclipse.mat.ui.snapshot.panes.oql.contentAssist.OQLContentAssistantProcessor
public class OQLContentAssistantProcessor
- extends Object
Provides the actual context assistant
OQLContentAssistantProcessor
public OQLContentAssistantProcessor(SuggestionProvider suggestionProvider,
ContextExtractor extractor)
- Base constructor that initializes suggestion provider and extractor.
- Parameters:
suggestionProvider
- extractor
-
computeCompletionProposals
public 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.
- Parameters:
arg0
- is the text viewer we are working onarg1
- is the current position.
computeContextInformation
public IContextInformation[] computeContextInformation(ITextViewer arg0,
int arg1)
getCompletionProposalAutoActivationCharacters
public char[] getCompletionProposalAutoActivationCharacters()
getContextInformationAutoActivationCharacters
public char[] getContextInformationAutoActivationCharacters()
getContextInformationValidator
public IContextInformationValidator getContextInformationValidator()
getErrorMessage
public String getErrorMessage()