Class TextSearchReferenceResult

    • Constructor Detail

      • TextSearchReferenceResult

        public TextSearchReferenceResult​(org.eclipse.emf.common.util.URI sourceUri,
                                         org.eclipse.emf.common.util.URI targetUri,
                                         org.eclipse.emf.common.util.URI topObjectUri)
        Constructor
        Parameters:
        sourceUri - source object uri, cannot be null
        targetUri - target object uri, cannot be null
        topObjectUri - uri of the top object for source object, cannot be null
      • TextSearchReferenceResult

        public TextSearchReferenceResult​(org.eclipse.emf.common.util.URI sourceUri,
                                         org.eclipse.emf.common.util.URI targetUri,
                                         org.eclipse.emf.common.util.URI topObjectUri,
                                         org.eclipse.emf.ecore.EReference reference,
                                         int index)
        Constructor
        Parameters:
        sourceUri - source object uri, cannot be null
        targetUri - target object uri, cannot be null
        topObjectUri - uri of the top object for source object, cannot be null
        reference - EReference of the source object, cant be null
        index - index of source element in collection of object corresponding to the reference
      • TextSearchReferenceResult

        public TextSearchReferenceResult​(org.eclipse.emf.common.util.URI sourceUri,
                                         org.eclipse.emf.common.util.URI targetUri,
                                         org.eclipse.emf.common.util.URI topObjectUri,
                                         org.eclipse.emf.ecore.EReference reference,
                                         int index,
                                         org.eclipse.jface.text.ITextSelection selection)
        Constructor
        Parameters:
        sourceUri - source object uri, cannot be null
        targetUri - target object uri, cannot be null
        topObjectUri - uri of the top object for source object, cannot be null
        reference - EReference of the source object, cant be null
        index - index of source element in collection of object corresponding to the reference
        selection - text selection corresponding to the source element, cannot be null
    • Method Detail

      • getSelection

        public org.eclipse.jface.text.ITextSelection getSelection()
        Description copied from interface: ITextSearchReferenceResult
        Actual ITextSelection corresponding to the referencing element
        Specified by:
        getSelection in interface ITextSearchReferenceResult
        Returns:
        ITextSelection corresponding to the referencing element, can be null if there is no selection for element
      • getSourceEObjectUri

        public org.eclipse.emf.common.util.URI getSourceEObjectUri()
        Specified by:
        getSourceEObjectUri in interface org.eclipse.xtext.resource.IReferenceDescription
      • getTargetEObjectUri

        public org.eclipse.emf.common.util.URI getTargetEObjectUri()
        Specified by:
        getTargetEObjectUri in interface org.eclipse.xtext.resource.IReferenceDescription
      • getIndexInList

        public int getIndexInList()
        Specified by:
        getIndexInList in interface org.eclipse.xtext.resource.IReferenceDescription
      • getEReference

        public org.eclipse.emf.ecore.EReference getEReference()
        Specified by:
        getEReference in interface org.eclipse.xtext.resource.IReferenceDescription
      • getContainerEObjectURI

        public org.eclipse.emf.common.util.URI getContainerEObjectURI()
        Specified by:
        getContainerEObjectURI in interface org.eclipse.xtext.resource.IReferenceDescription