Package org.eclipse.xtext.findReferences
Class ReferenceAcceptor
- java.lang.Object
-
- org.eclipse.xtext.findReferences.ReferenceAcceptor
-
- All Implemented Interfaces:
IReferenceFinder.Acceptor
public class ReferenceAcceptor extends java.lang.Object implements IReferenceFinder.Acceptor
For local references, populates anIReferenceDescriptionthat knows its exported container URI.
-
-
Constructor Summary
Constructors Constructor Description ReferenceAcceptor(IResourceServiceProvider.Registry resourceServiceProviderRegistry, org.eclipse.xtext.util.IAcceptor<IReferenceDescription> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.common.util.URI sourceURI, org.eclipse.emf.ecore.EReference eReference, int index, org.eclipse.emf.ecore.EObject targetOrProxy, org.eclipse.emf.common.util.URI targetURI)voidaccept(IReferenceDescription description)protected voidcomputeExportedObjectsMap(org.eclipse.emf.ecore.EObject source)protected IReferenceDescriptioncreateReferenceDescription(org.eclipse.emf.common.util.URI sourceURI, org.eclipse.emf.common.util.URI targetURI, org.eclipse.emf.ecore.EReference eReference, int index, org.eclipse.emf.common.util.URI containerURI)protected org.eclipse.emf.common.util.URIfindExportedContainer(org.eclipse.emf.ecore.EObject obj)
-
-
-
Constructor Detail
-
ReferenceAcceptor
public ReferenceAcceptor(IResourceServiceProvider.Registry resourceServiceProviderRegistry, org.eclipse.xtext.util.IAcceptor<IReferenceDescription> delegate)
-
-
Method Detail
-
accept
public void accept(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.common.util.URI sourceURI, org.eclipse.emf.ecore.EReference eReference, int index, org.eclipse.emf.ecore.EObject targetOrProxy, org.eclipse.emf.common.util.URI targetURI)- Specified by:
acceptin interfaceIReferenceFinder.Acceptor
-
accept
public void accept(IReferenceDescription description)
- Specified by:
acceptin interfaceIReferenceFinder.Acceptor
-
computeExportedObjectsMap
protected void computeExportedObjectsMap(org.eclipse.emf.ecore.EObject source)
-
findExportedContainer
protected org.eclipse.emf.common.util.URI findExportedContainer(org.eclipse.emf.ecore.EObject obj)
-
createReferenceDescription
protected IReferenceDescription createReferenceDescription(org.eclipse.emf.common.util.URI sourceURI, org.eclipse.emf.common.util.URI targetURI, org.eclipse.emf.ecore.EReference eReference, int index, org.eclipse.emf.common.util.URI containerURI)
-
-