Class OQLContentAssistantProcessor
java.lang.Object
org.eclipse.mat.ui.snapshot.panes.oql.contentAssist.OQLContentAssistantProcessor
- All Implemented Interfaces:
IContentAssistProcessor
Provides the actual context assistant
-
Constructor Summary
ConstructorDescriptionOQLContentAssistantProcessor
(SuggestionProvider suggestionProvider, ContextExtractor extractor) Base constructor that initializes suggestion provider and extractor. -
Method Summary
Modifier and TypeMethodDescriptioncomputeCompletionProposals
(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.computeContextInformation
(ITextViewer arg0, int arg1) char[]
char[]
void
-
Constructor Details
-
OQLContentAssistantProcessor
public OQLContentAssistantProcessor(SuggestionProvider suggestionProvider, ContextExtractor extractor) Base constructor that initializes suggestion provider and extractor.- Parameters:
suggestionProvider
-extractor
-
-
-
Method Details
-
computeCompletionProposals
Asks the extractor to get the context, then gets the list of suggestions through the provider and builds the ICompletionProposal array to be returned.- Specified by:
computeCompletionProposals
in interfaceIContentAssistProcessor
- Parameters:
arg0
- is the text viewer we are working onarg1
- is the current position.
-
computeContextInformation
- Specified by:
computeContextInformation
in interfaceIContentAssistProcessor
-
getCompletionProposalAutoActivationCharacters
public char[] getCompletionProposalAutoActivationCharacters()- Specified by:
getCompletionProposalAutoActivationCharacters
in interfaceIContentAssistProcessor
-
getContextInformationAutoActivationCharacters
public char[] getContextInformationAutoActivationCharacters()- Specified by:
getContextInformationAutoActivationCharacters
in interfaceIContentAssistProcessor
-
getContextInformationValidator
- Specified by:
getContextInformationValidator
in interfaceIContentAssistProcessor
-
getErrorMessage
- Specified by:
getErrorMessage
in interfaceIContentAssistProcessor
-
getLastContextInformation
-
setLastContextInformation
-