public final class HippieProposalProcessor extends Object implements IContentAssistProcessor
Clients may instantiate.
| Constructor and Description |
|---|
HippieProposalProcessor()
Creates a new hippie completion proposal computer.
|
| Modifier and Type | Method and Description |
|---|---|
ICompletionProposal[] |
computeCompletionProposals(ITextViewer viewer,
int offset)
Returns a list of completion proposals based on the
specified location within the document that corresponds
to the current cursor position within the text viewer.
|
IContextInformation[] |
computeContextInformation(ITextViewer viewer,
int offset)
Returns information about possible contexts based on the
specified location within the document that corresponds
to the current cursor position within the text viewer.
|
char[] |
getCompletionProposalAutoActivationCharacters()
Returns the characters which when entered by the user should
automatically trigger the presentation of possible completions.
|
char[] |
getContextInformationAutoActivationCharacters()
Returns the characters which when entered by the user should
automatically trigger the presentation of context information.
|
IContextInformationValidator |
getContextInformationValidator()
Returns a validator used to determine when displayed context information
should be dismissed.
|
String |
getErrorMessage()
Returns the reason why this content assist processor
was unable to produce any completion proposals or context information.
|
public HippieProposalProcessor()
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset)
IContentAssistProcessorcomputeCompletionProposals in interface IContentAssistProcessorviewer - the viewer whose document is used to compute the proposalsoffset - an offset within the document for which completions should be computednull if no proposals are possiblepublic IContextInformation[] computeContextInformation(ITextViewer viewer, int offset)
IContentAssistProcessorcomputeContextInformation in interface IContentAssistProcessorviewer - the viewer whose document is used to compute the possible contextsoffset - an offset within the document for which context information should be computednull if no context could be foundpublic char[] getCompletionProposalAutoActivationCharacters()
IContentAssistProcessorgetCompletionProposalAutoActivationCharacters in interface IContentAssistProcessornull
if no auto activation is desiredpublic char[] getContextInformationAutoActivationCharacters()
IContentAssistProcessorgetContextInformationAutoActivationCharacters in interface IContentAssistProcessornull if no auto activation is desiredpublic IContextInformationValidator getContextInformationValidator()
IContentAssistProcessornull if the processor is
incapable of computing context information. getContextInformationValidator in interface IContentAssistProcessornull if the processor
is incapable of computing context informationpublic String getErrorMessage()
IContentAssistProcessorgetErrorMessage in interface IContentAssistProcessornull if no error occurredGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.