Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340645

Summary: Add new method getInverseReferences(EObject,boolean) to org.eclipse.sphinx.emf.util.EObjectUtil
Product: [Automotive] Sphinx Reporter: Yannick DIDIERJEAN <yannick7777>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Yannick DIDIERJEAN CLA 2011-03-22 07:09:48 EDT
Build Identifier: M20110210-1200

** The method getInverseReferences(EObject,boolean) behavior is to retrieve all model EObjects in loaded models referencing the provided EObject.
org.eclipse.emf.ecore.util.ECrossReferenceAdapter is used to retrieve cross references.
** This method should be implemented in the class org.eclipse.sphinx.emf.util.EObjectUtil.
**Method signature :
getInverseReferences(EObject object,boolean resolve)
EObject object : The model EObject for the one Referencing elements must be retrieved.
boolean resolve : Boolean that determines weither or not proxies must be resolved during process.


Reproducible: Always
Comment 1 Stephan Eberle CLA 2011-03-22 12:30:45 EDT
Fixed by moving ECrossReferenceAdapterFactory from org.eclipse.sphinx.workspace.referentialintegrity to org.eclipse.sphinx.emf.ecore and adding proposed method to EObjectUtil.
Comment 2 Stephan Eberle CLA 2011-03-22 12:31:55 EDT
Forgot to update bug statue. See comment #1 for details.
Comment 3 Balazs Grill CLA 2021-07-14 02:15:03 EDT
Mass-closing Resolved tickets