public class XtextContentAssistProcessor extends Object implements org.eclipse.jface.text.contentassist.IContentAssistProcessor, CompletionProposalComputer.State, ContextInformationComputer.State
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPLETION_AUTO_ACTIVATION_CHARS |
static String |
CONTEXT_INFO_AUTO_ACTIVATION_CHARS |
static String |
ERROR_MESSAGE |
| Constructor and Description |
|---|
XtextContentAssistProcessor() |
public static final String COMPLETION_AUTO_ACTIVATION_CHARS
public static final String CONTEXT_INFO_AUTO_ACTIVATION_CHARS
public static final String ERROR_MESSAGE
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int offset)
computeCompletionProposals in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorprotected CompletionProposalComputer createCompletionProposalComputer(org.eclipse.jface.text.ITextViewer viewer, int offset)
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
int offset)
computeContextInformation in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorprotected ContextInformationComputer createContextInformationComputer(org.eclipse.jface.text.ITextViewer viewer, int offset)
public char[] getCompletionProposalAutoActivationCharacters()
getCompletionProposalAutoActivationCharacters in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic char[] getContextInformationAutoActivationCharacters()
getContextInformationAutoActivationCharacters in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
getContextInformationValidator in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic String getErrorMessage()
getErrorMessage in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic void setCompletionProposalAutoActivationCharacters(String completionProposalAutoActivationCharacters)
public void setContextFactory(ContentAssistContext.Factory contextFactory)
public ContentAssistContext.Factory getContextFactory()
getContextFactory in interface CompletionProposalComputer.StategetContextFactory in interface ContextInformationComputer.Statepublic void setErrorMessage(String errorMessage)
public void setContextInformationAutoActivationCharacters(String contextInformationAutoActivationCharacters)
public void setContentProposalProvider(IContentProposalProvider contentProposalProvider)
public IContentProposalProvider getContentProposalProvider()
getContentProposalProvider in interface CompletionProposalComputer.Statepublic void setTemplateProposalProvider(ITemplateProposalProvider templateProposalProvider)
public ITemplateProposalProvider getTemplateProposalProvider()
getTemplateProposalProvider in interface CompletionProposalComputer.Statepublic IContextInformationProvider getContextInformationProvider()
getContextInformationProvider in interface ContextInformationComputer.Statepublic ICompletionProposalAcceptor decorateAcceptor(ICompletionProposalAcceptor acceptor)
decorateAcceptor in interface CompletionProposalComputer.Statepublic ITemplateAcceptor decorateAcceptor(ITemplateAcceptor acceptor)
decorateAcceptor in interface CompletionProposalComputer.Statepublic IContextInformationAcceptor decorateAcceptor(IContextInformationAcceptor acceptor)
decorateAcceptor in interface ContextInformationComputer.Statepublic void setCompletionProposalPostProcessor(ICompletionProposalPostProcessor completionProposalPostProcessor)
public ICompletionProposalPostProcessor getCompletionProposalPostProcessor()
public ICompletionProposalComparator getCompletionProposalComparator()
Copyright © 2016. All Rights Reserved.