Class QuickFixCodeActionProvider

  • All Implemented Interfaces:
    WeaveCodeActionProvider

    public abstract class QuickFixCodeActionProvider
    extends java.lang.Object
    implements WeaveCodeActionProvider
    Base class for creating CodeAction for quick fixes. It takes care of the checking if there is a Diagnostic reported for the current location were the code action is requested. Implementation that would like to contribute with code actions as quick fixes should extend from this class.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Optional<org.eclipse.lsp4j.Diagnostic> getDiagnostic​(org.eclipse.lsp4j.CodeActionParams params, java.util.List<org.eclipse.lsp4j.Diagnostic> diagnostics)  
      protected abstract java.lang.String getKind()  
      boolean handles​(org.eclipse.lsp4j.CodeActionParams params, ContextMetadata context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QuickFixCodeActionProvider

        public QuickFixCodeActionProvider()
    • Method Detail

      • getDiagnostic

        protected java.util.Optional<org.eclipse.lsp4j.Diagnostic> getDiagnostic​(org.eclipse.lsp4j.CodeActionParams params,
                                                                                 java.util.List<org.eclipse.lsp4j.Diagnostic> diagnostics)
      • getKind

        protected abstract java.lang.String getKind()