Class DocumentExtensions


  • public class DocumentExtensions
    extends java.lang.Object
    Since:
    2.11
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.lsp4j.Location newFullLocation​(org.eclipse.emf.ecore.EObject object)
      Returns with the location that represents the full text region of the argument.
      org.eclipse.lsp4j.Location newLocation​(org.eclipse.emf.ecore.EObject object)  
      org.eclipse.lsp4j.Location newLocation​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)  
      org.eclipse.lsp4j.Location newLocation​(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.util.ITextRegion textRegion)  
      org.eclipse.lsp4j.Position newPosition​(org.eclipse.emf.ecore.resource.Resource resource, int offset)  
      org.eclipse.lsp4j.Range newRange​(org.eclipse.emf.ecore.resource.Resource resource, int startOffset, int endOffset)  
      org.eclipse.lsp4j.Range newRange​(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.util.ITextRegion region)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentExtensions

        public DocumentExtensions()
    • Method Detail

      • newPosition

        public org.eclipse.lsp4j.Position newPosition​(org.eclipse.emf.ecore.resource.Resource resource,
                                                      int offset)
      • newRange

        public org.eclipse.lsp4j.Range newRange​(org.eclipse.emf.ecore.resource.Resource resource,
                                                int startOffset,
                                                int endOffset)
      • newRange

        public org.eclipse.lsp4j.Range newRange​(org.eclipse.emf.ecore.resource.Resource resource,
                                                org.eclipse.xtext.util.ITextRegion region)
      • newLocation

        public org.eclipse.lsp4j.Location newLocation​(org.eclipse.emf.ecore.resource.Resource resource,
                                                      org.eclipse.xtext.util.ITextRegion textRegion)
      • newLocation

        public org.eclipse.lsp4j.Location newLocation​(org.eclipse.emf.ecore.EObject object)
      • newFullLocation

        public org.eclipse.lsp4j.Location newFullLocation​(org.eclipse.emf.ecore.EObject object)
        Returns with the location that represents the full text region of the argument.
        Since:
        2.16
      • newLocation

        public org.eclipse.lsp4j.Location newLocation​(org.eclipse.emf.ecore.EObject owner,
                                                      org.eclipse.emf.ecore.EStructuralFeature feature,
                                                      int indexInList)