Class SpellingCorrectionProcessor
java.lang.Object
org.eclipse.ui.texteditor.spelling.SpellingCorrectionProcessor
- All Implemented Interfaces:
IQuickAssistProcessor
Spelling correction processor used to show quick
fixes for spelling problems.
- Since:
- 3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAssist(IQuickAssistInvocationContext invocationContext) Tells whether this assistant has assists for the given invocation context.booleancanFix(Annotation annotation) Tells whether this processor has a fix for the given annotation.computeQuickAssistProposals(IQuickAssistInvocationContext quickAssistContext) Returns a list of quick assist and quick fix proposals for the given invocation context.Returns the reason why this quick assist processor was unable to produce any completion proposals.
-
Constructor Details
-
SpellingCorrectionProcessor
public SpellingCorrectionProcessor()
-
-
Method Details
-
computeQuickAssistProposals
public ICompletionProposal[] computeQuickAssistProposals(IQuickAssistInvocationContext quickAssistContext) Description copied from interface:IQuickAssistProcessorReturns a list of quick assist and quick fix proposals for the given invocation context.- Specified by:
computeQuickAssistProposalsin interfaceIQuickAssistProcessor- Parameters:
quickAssistContext- the invocation context- Returns:
- an array of completion proposals or
nullif no proposals are available
-
getErrorMessage
Description copied from interface:IQuickAssistProcessorReturns the reason why this quick assist processor was unable to produce any completion proposals.- Specified by:
getErrorMessagein interfaceIQuickAssistProcessor- Returns:
- an error message or
nullif no error occurred
-
canFix
Description copied from interface:IQuickAssistProcessorTells whether this processor has a fix for the given annotation.Note: This test must be fast and optimistic i.e. it is OK to return
trueeven though there might be no quick fix.- Specified by:
canFixin interfaceIQuickAssistProcessor- Parameters:
annotation- the annotation- Returns:
trueif the assistant has a fix for the given annotation
-
canAssist
Description copied from interface:IQuickAssistProcessorTells whether this assistant has assists for the given invocation context.- Specified by:
canAssistin interfaceIQuickAssistProcessor- Parameters:
invocationContext- the invocation context- Returns:
trueif the assistant has a fix for the given annotation
-