|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.contentassist.XtextContentAssistProcessor
public class XtextContentAssistProcessor
Field Summary | |
---|---|
static java.lang.String |
COMPLETION_AUTO_ACTIVATION_CHARS
|
static java.lang.String |
CONTEXT_INFO_AUTO_ACTIVATION_CHARS
|
static java.lang.String |
ERROR_MESSAGE
|
Constructor Summary | |
---|---|
XtextContentAssistProcessor()
|
Method Summary | |
---|---|
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(org.eclipse.jface.text.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. |
org.eclipse.jface.text.contentassist.IContextInformation[] |
computeContextInformation(org.eclipse.jface.text.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. |
protected CompletionProposalComputer |
createCompletionProposalComputer(org.eclipse.jface.text.ITextViewer viewer,
int offset)
|
protected ContextInformationComputer |
createContextInformationComputer(org.eclipse.jface.text.ITextViewer viewer,
int offset)
|
ICompletionProposalAcceptor |
decorateAcceptor(ICompletionProposalAcceptor acceptor)
|
IContextInformationAcceptor |
decorateAcceptor(IContextInformationAcceptor acceptor)
|
ITemplateAcceptor |
decorateAcceptor(ITemplateAcceptor acceptor)
|
char[] |
getCompletionProposalAutoActivationCharacters()
Returns the characters which when entered by the user should automatically trigger the presentation of possible completions. |
ICompletionProposalPostProcessor |
getCompletionProposalPostProcessor()
|
IContentProposalProvider |
getContentProposalProvider()
|
ContentAssistContext.Factory |
getContextFactory()
|
char[] |
getContextInformationAutoActivationCharacters()
Returns the characters which when entered by the user should automatically trigger the presentation of context information. |
IContextInformationProvider |
getContextInformationProvider()
|
org.eclipse.jface.text.contentassist.IContextInformationValidator |
getContextInformationValidator()
Returns a validator used to determine when displayed context information should be dismissed. |
java.lang.String |
getErrorMessage()
Returns the reason why this content assist processor was unable to produce any completion proposals or context information. |
ITemplateProposalProvider |
getTemplateProposalProvider()
|
void |
setCompletionProposalAutoActivationCharacters(java.lang.String completionProposalAutoActivationCharacters)
|
void |
setCompletionProposalPostProcessor(ICompletionProposalPostProcessor completionProposalPostProcessor)
|
void |
setContentProposalProvider(IContentProposalProvider contentProposalProvider)
|
void |
setContextFactory(ContentAssistContext.Factory contextFactory)
|
void |
setContextInformationAutoActivationCharacters(java.lang.String contextInformationAutoActivationCharacters)
|
void |
setErrorMessage(java.lang.String errorMessage)
|
void |
setTemplateProposalProvider(ITemplateProposalProvider templateProposalProvider)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPLETION_AUTO_ACTIVATION_CHARS
public static final java.lang.String CONTEXT_INFO_AUTO_ACTIVATION_CHARS
public static final java.lang.String ERROR_MESSAGE
Constructor Detail |
---|
public XtextContentAssistProcessor()
Method Detail |
---|
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer, int offset)
org.eclipse.jface.text.contentassist.IContentAssistProcessor
computeCompletionProposals
in interface org.eclipse.jface.text.contentassist.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 possibleprotected 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)
org.eclipse.jface.text.contentassist.IContentAssistProcessor
computeContextInformation
in interface org.eclipse.jface.text.contentassist.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 foundprotected ContextInformationComputer createContextInformationComputer(org.eclipse.jface.text.ITextViewer viewer, int offset)
public char[] getCompletionProposalAutoActivationCharacters()
org.eclipse.jface.text.contentassist.IContentAssistProcessor
getCompletionProposalAutoActivationCharacters
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
null
if no auto activation is desiredpublic char[] getContextInformationAutoActivationCharacters()
org.eclipse.jface.text.contentassist.IContentAssistProcessor
getContextInformationAutoActivationCharacters
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
null
if no auto activation is desiredpublic org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
org.eclipse.jface.text.contentassist.IContentAssistProcessor
null
if the processor is
incapable of computing context information.
getContextInformationValidator
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
null
if the processor
is incapable of computing context informationpublic java.lang.String getErrorMessage()
org.eclipse.jface.text.contentassist.IContentAssistProcessor
getErrorMessage
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
null
if no error occurredpublic void setCompletionProposalAutoActivationCharacters(java.lang.String completionProposalAutoActivationCharacters)
public void setContextFactory(ContentAssistContext.Factory contextFactory)
public ContentAssistContext.Factory getContextFactory()
getContextFactory
in interface CompletionProposalComputer.State
getContextFactory
in interface ContextInformationComputer.State
public void setErrorMessage(java.lang.String errorMessage)
public void setContextInformationAutoActivationCharacters(java.lang.String contextInformationAutoActivationCharacters)
public void setContentProposalProvider(IContentProposalProvider contentProposalProvider)
public IContentProposalProvider getContentProposalProvider()
getContentProposalProvider
in interface CompletionProposalComputer.State
public void setTemplateProposalProvider(ITemplateProposalProvider templateProposalProvider)
public ITemplateProposalProvider getTemplateProposalProvider()
getTemplateProposalProvider
in interface CompletionProposalComputer.State
public IContextInformationProvider getContextInformationProvider()
getContextInformationProvider
in interface ContextInformationComputer.State
public ICompletionProposalAcceptor decorateAcceptor(ICompletionProposalAcceptor acceptor)
decorateAcceptor
in interface CompletionProposalComputer.State
public ITemplateAcceptor decorateAcceptor(ITemplateAcceptor acceptor)
decorateAcceptor
in interface CompletionProposalComputer.State
public IContextInformationAcceptor decorateAcceptor(IContextInformationAcceptor acceptor)
decorateAcceptor
in interface ContextInformationComputer.State
public void setCompletionProposalPostProcessor(ICompletionProposalPostProcessor completionProposalPostProcessor)
public ICompletionProposalPostProcessor getCompletionProposalPostProcessor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |