Class TextSearchReferenceResult
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.refs.TextSearchReferenceResult
-
- All Implemented Interfaces:
ITextSearchReferenceResult
,org.eclipse.xtext.resource.IReferenceDescription
public class TextSearchReferenceResult extends Object implements ITextSearchReferenceResult, org.eclipse.xtext.resource.IReferenceDescription
Default implementation ofITextSearchReferenceResult
. Also this class implementsIReferenceDescription
-
-
Constructor Summary
Constructors Constructor Description TextSearchReferenceResult(org.eclipse.emf.common.util.URI sourceUri, org.eclipse.emf.common.util.URI targetUri, org.eclipse.emf.common.util.URI topObjectUri)
ConstructorTextSearchReferenceResult(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)
ConstructorTextSearchReferenceResult(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.util.URI
getContainerEObjectURI()
org.eclipse.emf.ecore.EReference
getEReference()
int
getIndexInList()
org.eclipse.jface.text.ITextSelection
getSelection()
ActualITextSelection
corresponding to the referencing elementorg.eclipse.emf.common.util.URI
getSourceEObjectUri()
org.eclipse.emf.common.util.URI
getSourceObjectUri()
SourceURI
of the referencing elementorg.eclipse.emf.common.util.URI
getTargetEObjectUri()
org.eclipse.emf.common.util.URI
getTargetUri()
TargetURI
to the element for found references
-
-
-
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 benull
targetUri
- target object uri, cannot benull
topObjectUri
- uri of the top object for source object, cannot benull
-
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 benull
targetUri
- target object uri, cannot benull
topObjectUri
- uri of the top object for source object, cannot benull
reference
-EReference
of the source object, cant benull
index
- index of source element in collection of object corresponding to thereference
-
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 benull
targetUri
- target object uri, cannot benull
topObjectUri
- uri of the top object for source object, cannot benull
reference
-EReference
of the source object, cant benull
index
- index of source element in collection of object corresponding to thereference
selection
- text selection corresponding to the source element, cannot benull
-
-
Method Detail
-
getTargetUri
public org.eclipse.emf.common.util.URI getTargetUri()
Description copied from interface:ITextSearchReferenceResult
TargetURI
to the element for found references- Specified by:
getTargetUri
in interfaceITextSearchReferenceResult
- Returns:
URI
to the element for found references, nevernull
-
getSourceObjectUri
public org.eclipse.emf.common.util.URI getSourceObjectUri()
Description copied from interface:ITextSearchReferenceResult
SourceURI
of the referencing element- Specified by:
getSourceObjectUri
in interfaceITextSearchReferenceResult
- Returns:
URI
of the referencing element, nevernull
-
getSelection
public org.eclipse.jface.text.ITextSelection getSelection()
Description copied from interface:ITextSearchReferenceResult
ActualITextSelection
corresponding to the referencing element- Specified by:
getSelection
in interfaceITextSearchReferenceResult
- Returns:
ITextSelection
corresponding to the referencing element, can benull
if there is no selection for element
-
getSourceEObjectUri
public org.eclipse.emf.common.util.URI getSourceEObjectUri()
- Specified by:
getSourceEObjectUri
in interfaceorg.eclipse.xtext.resource.IReferenceDescription
-
getTargetEObjectUri
public org.eclipse.emf.common.util.URI getTargetEObjectUri()
- Specified by:
getTargetEObjectUri
in interfaceorg.eclipse.xtext.resource.IReferenceDescription
-
getIndexInList
public int getIndexInList()
- Specified by:
getIndexInList
in interfaceorg.eclipse.xtext.resource.IReferenceDescription
-
getEReference
public org.eclipse.emf.ecore.EReference getEReference()
- Specified by:
getEReference
in interfaceorg.eclipse.xtext.resource.IReferenceDescription
-
getContainerEObjectURI
public org.eclipse.emf.common.util.URI getContainerEObjectURI()
- Specified by:
getContainerEObjectURI
in interfaceorg.eclipse.xtext.resource.IReferenceDescription
-
-