Class QuickFixCodeActionProvider
java.lang.Object
org.mule.weave.extension.api.extension.action.QuickFixCodeActionProvider
- All Implemented Interfaces:
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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<org.eclipse.lsp4j.Diagnostic>getDiagnostic(org.eclipse.lsp4j.CodeActionParams params, List<org.eclipse.lsp4j.Diagnostic> diagnostics) protected abstract StringgetKind()final 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, waitMethods inherited from interface org.mule.weave.extension.api.extension.action.WeaveCodeActionProvider
actions
-
Constructor Details
-
QuickFixCodeActionProvider
public QuickFixCodeActionProvider()
-
-
Method Details
-
handles
public final boolean handles(org.eclipse.lsp4j.CodeActionParams params, @Nullable ContextMetadata context) - Specified by:
handlesin interfaceWeaveCodeActionProvider
-
getDiagnostic
-
getKind
-