Class RNGReplaceDatatypeCodeAction

java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rng.codeaction.RNGReplaceDatatypeCodeAction
All Implemented Interfaces:
ICodeActionParticipant

public class RNGReplaceDatatypeCodeAction extends Object implements ICodeActionParticipant
Code action to replace an unrecognized datatype value in the type attribute of a <data> or <value> element.

The list of valid type values is retrieved from the content model and filtered by the effective datatypeLibrary attribute via CMAttributeDeclaration.getEnumerationValues(DOMElement).

  • Constructor Details

    • RNGReplaceDatatypeCodeAction

      public RNGReplaceDatatypeCodeAction()
  • Method Details

    • doCodeAction

      public void doCodeAction(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
      Description copied from interface: ICodeActionParticipant
      Collect the code action in the given codeActions for the given code action request request.
      Specified by:
      doCodeAction in interface ICodeActionParticipant
      Parameters:
      request - the code action request.
      codeActions - list of code actions to fill.
      cancelChecker - the cancel checker.