public interface IQuickAssistProcessor
A processor can provide just quick fixes, just quick assists or both.
This interface can be implemented by clients.
| 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 invocationContext)
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.
|
String getErrorMessage()
null if no error occurredboolean canFix(Annotation annotation)
Note: this test must be fast and optimistic i.e. it is OK to return
true even though there might be no quick fix.
annotation - the annotationtrue if the assistant has a fix for the given annotationboolean canAssist(IQuickAssistInvocationContext invocationContext)
invocationContext - the invocation contexttrue if the assistant has a fix for the given annotationICompletionProposal[] computeQuickAssistProposals(IQuickAssistInvocationContext invocationContext)
invocationContext - the invocation contextnull if no proposals are availableGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.