Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340645 - Add new method getInverseReferences(EObject,boolean) to org.eclipse.sphinx.emf.util.EObjectUtil
Summary: Add new method getInverseReferences(EObject,boolean) to org.eclipse.sphinx.em...
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 07:09 EDT by Yannick DIDIERJEAN CLA
Modified: 2021-07-14 02:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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