public class XtextQuickAssistProcessor extends AbstractIssueResolutionProviderAdapter implements org.eclipse.jface.text.quickassist.IQuickAssistProcessor
DEFAULT_IMAGE| Constructor and Description |
|---|
XtextQuickAssistProcessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAssist(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext) |
boolean |
canFix(org.eclipse.jface.text.source.Annotation annotation) |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeQuickAssistProposals(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext) |
protected org.eclipse.jface.text.contentassist.ICompletionProposal |
create(org.eclipse.jface.text.Position posisition,
IssueResolution resolution) |
protected List<org.eclipse.jface.text.contentassist.ICompletionProposal> |
createQuickfixes(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext,
Set<org.eclipse.jface.text.source.Annotation> applicableAnnotations) |
protected Set<org.eclipse.jface.text.source.Annotation> |
getApplicableAnnotations(IXtextDocument document,
org.eclipse.jface.text.source.IAnnotationModel annotationModel,
int offset) |
String |
getErrorMessage() |
IssueUtil |
getIssueUtil() |
protected void |
selectAndRevealQuickfix(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext,
Set<org.eclipse.jface.text.source.Annotation> applicableAnnotations,
List<org.eclipse.jface.text.contentassist.ICompletionProposal> completionProposals) |
protected void |
sortQuickfixes(List<org.eclipse.jface.text.contentassist.ICompletionProposal> quickFixes) |
getImage, getResolutionProvider, getResolutionspublic String getErrorMessage()
getErrorMessage in interface org.eclipse.jface.text.quickassist.IQuickAssistProcessorpublic boolean canFix(org.eclipse.jface.text.source.Annotation annotation)
canFix in interface org.eclipse.jface.text.quickassist.IQuickAssistProcessorpublic boolean canAssist(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext)
canAssist in interface org.eclipse.jface.text.quickassist.IQuickAssistProcessorpublic org.eclipse.jface.text.contentassist.ICompletionProposal[] computeQuickAssistProposals(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext)
computeQuickAssistProposals in interface org.eclipse.jface.text.quickassist.IQuickAssistProcessorprotected List<org.eclipse.jface.text.contentassist.ICompletionProposal> createQuickfixes(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext, Set<org.eclipse.jface.text.source.Annotation> applicableAnnotations)
protected void selectAndRevealQuickfix(org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext,
Set<org.eclipse.jface.text.source.Annotation> applicableAnnotations,
List<org.eclipse.jface.text.contentassist.ICompletionProposal> completionProposals)
protected org.eclipse.jface.text.contentassist.ICompletionProposal create(org.eclipse.jface.text.Position posisition,
IssueResolution resolution)
protected void sortQuickfixes(List<org.eclipse.jface.text.contentassist.ICompletionProposal> quickFixes)
protected Set<org.eclipse.jface.text.source.Annotation> getApplicableAnnotations(IXtextDocument document, org.eclipse.jface.text.source.IAnnotationModel annotationModel, int offset) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionpublic IssueUtil getIssueUtil()
Copyright © 2016. All Rights Reserved.