Class SpellingCorrectionProcessor

    • Constructor Detail

      • SpellingCorrectionProcessor

        public SpellingCorrectionProcessor()
    • Method Detail

      • getErrorMessage

        public String getErrorMessage()
        Description copied from interface: IQuickAssistProcessor
        Returns the reason why this quick assist processor was unable to produce any completion proposals.
        Specified by:
        getErrorMessage in interface IQuickAssistProcessor
        Returns:
        an error message or null if no error occurred
      • canFix

        public boolean canFix​(Annotation annotation)
        Description copied from interface: IQuickAssistProcessor
        Tells 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 true even though there might be no quick fix.

        Specified by:
        canFix in interface IQuickAssistProcessor
        Parameters:
        annotation - the annotation
        Returns:
        true if the assistant has a fix for the given annotation
      • canAssist

        public boolean canAssist​(IQuickAssistInvocationContext invocationContext)
        Description copied from interface: IQuickAssistProcessor
        Tells whether this assistant has assists for the given invocation context.
        Specified by:
        canAssist in interface IQuickAssistProcessor
        Parameters:
        invocationContext - the invocation context
        Returns:
        true if the assistant has a fix for the given annotation