|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.texteditor.HippieProposalProcessor
A completion proposal computer for hippie word completions.
Clients may instantiate.
Constructor Summary | |
---|---|
HippieProposalProcessor()
Creates a new hippie completion proposal computer. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HippieProposalProcessor()
Method Detail |
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset)
IContentAssistProcessor
computeCompletionProposals
in interface IContentAssistProcessor
viewer
- the viewer whose document is used to compute the proposalsoffset
- an offset within the document for which completions should be computed
null
if no proposals are possiblepublic IContextInformation[] computeContextInformation(ITextViewer viewer, int offset)
IContentAssistProcessor
computeContextInformation
in interface IContentAssistProcessor
viewer
- the viewer whose document is used to compute the possible contextsoffset
- an offset within the document for which context information should be computed
null
if no context could be foundpublic char[] getCompletionProposalAutoActivationCharacters()
IContentAssistProcessor
getCompletionProposalAutoActivationCharacters
in interface IContentAssistProcessor
null
if no auto activation is desiredpublic char[] getContextInformationAutoActivationCharacters()
IContentAssistProcessor
getContextInformationAutoActivationCharacters
in interface IContentAssistProcessor
null
if no auto activation is desiredpublic IContextInformationValidator getContextInformationValidator()
IContentAssistProcessor
null
if the processor is
incapable of computing context information.
getContextInformationValidator
in interface IContentAssistProcessor
null
if the processor
is incapable of computing context informationpublic String getErrorMessage()
IContentAssistProcessor
getErrorMessage
in interface IContentAssistProcessor
null
if no error occurred
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.