public final class SpellingCorrectionProcessor extends Object implements IQuickAssistProcessor
| Constructor and Description |
|---|
SpellingCorrectionProcessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAssist(IQuickAssistInvocationContext invocationContext)
Tells whether this assistant has assists for the given invocation context.
|
boolean |
canFix(Annotation annotation)
Tells whether this processor has a fix for the given annotation.
|
ICompletionProposal[] |
computeQuickAssistProposals(IQuickAssistInvocationContext quickAssistContext)
Returns a list of quick assist and quick fix proposals for the
given invocation context.
|
String |
getErrorMessage()
Returns the reason why this quick assist processor
was unable to produce any completion proposals.
|
public ICompletionProposal[] computeQuickAssistProposals(IQuickAssistInvocationContext quickAssistContext)
IQuickAssistProcessorcomputeQuickAssistProposals in interface IQuickAssistProcessorquickAssistContext - the invocation contextnull if no proposals are availablepublic String getErrorMessage()
IQuickAssistProcessorgetErrorMessage in interface IQuickAssistProcessornull if no error occurredpublic boolean canFix(Annotation annotation)
IQuickAssistProcessor
Note: This test must be fast and optimistic i.e. it is OK to return
true even though there might be no quick fix.
canFix in interface IQuickAssistProcessorannotation - the annotationtrue if the assistant has a fix for the given annotationpublic boolean canAssist(IQuickAssistInvocationContext invocationContext)
IQuickAssistProcessorcanAssist in interface IQuickAssistProcessorinvocationContext - the invocation contexttrue if the assistant has a fix for the given annotation
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.