Interface ITextModification

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ITextModification
Since:
2.27
Author:
Rubén Porras Campo - Initial contribution and API
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.lsp4j.TextEdit>
    apply(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.emf.ecore.EObject object, Document document)
    Returns a list of TextEdits given a diagnostic, object and document.
  • Method Details

    • apply

      List<org.eclipse.lsp4j.TextEdit> apply(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.emf.ecore.EObject object, Document document)
      Returns a list of TextEdits given a diagnostic, object and document.
      Parameters:
      diagnostic - the Diagnostic
      object - the EObject after diagnostic.getRange().getStart()
      document - the Document with the URI given in the diagnostic
      Returns:
      0..n TextEdit