|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.texteditor.templates.TemplateVariableProcessor
A content assist processor for template variables.
This class should not be used by clients and may become package visible in the future.
Constructor Summary | |
TemplateVariableProcessor()
|
Method Summary | |
ICompletionProposal[] |
computeCompletionProposals(ITextViewer viewer,
int documentOffset)
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 documentOffset)
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. |
TemplateContextType |
getContextType()
Returns the context type. |
String |
getErrorMessage()
Returns the reason why this content assist processor was unable to produce any completion proposals or context information. |
void |
setContextType(TemplateContextType contextType)
Sets the context type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateVariableProcessor()
Method Detail |
public void setContextType(TemplateContextType contextType)
contextType
- the context type for this processorpublic TemplateContextType getContextType()
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset)
IContentAssistProcessor
computeCompletionProposals
in interface IContentAssistProcessor
viewer
- the viewer whose document is used to compute the proposalsdocumentOffset
- an offset within the document for which completions should be computed
null
if no proposals are possiblepublic IContextInformation[] computeContextInformation(ITextViewer viewer, int documentOffset)
IContentAssistProcessor
computeContextInformation
in interface IContentAssistProcessor
viewer
- the viewer whose document is used to compute the possible contextsdocumentOffset
- 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 String getErrorMessage()
IContentAssistProcessor
getErrorMessage
in interface IContentAssistProcessor
null
if no error occurredpublic 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 information
|
Eclipse Platform Release 3.0 |
||||||||||
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, 2004. All rights reserved.