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
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.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 Detail

      • apply

        java.util.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