Class QuickFixCodeActionProvider
- java.lang.Object
-
- org.mule.weave.extension.api.extension.action.QuickFixCodeActionProvider
-
- All Implemented Interfaces:
WeaveCodeActionProvider
public abstract class QuickFixCodeActionProvider extends java.lang.Object implements WeaveCodeActionProvider
Base class for creatingCodeActionfor quick fixes. It takes care of the checking if there is aDiagnosticreported 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.
-
-
Constructor Summary
Constructors Constructor Description QuickFixCodeActionProvider()
-
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.StringgetKind()booleanhandles(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
-
Methods inherited from interface org.mule.weave.extension.api.extension.action.WeaveCodeActionProvider
actions
-
-
-
-
Method Detail
-
handles
public final boolean handles(org.eclipse.lsp4j.CodeActionParams params, @Nullable ContextMetadata context)- Specified by:
handlesin interfaceWeaveCodeActionProvider
-
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()
-
-