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 anIReferenceDescription
that 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 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)
void
accept(IReferenceDescription description)
protected void
computeExportedObjectsMap(org.eclipse.emf.ecore.EObject source)
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)
protected org.eclipse.emf.common.util.URI
findExportedContainer(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:
accept
in interfaceIReferenceFinder.Acceptor
-
accept
public void accept(IReferenceDescription description)
- Specified by:
accept
in 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)
-
-