Skip to main content



      Home
Home » Modeling » EMF » return all objects which reference a given one
return all objects which reference a given one [message #1005036] Thu, 24 January 2013 06:08 Go to next message
Eclipse UserFriend
Hi Guys,

probably a silly question and has been answered many times, but i have not found an answer.

Does anyboody know how to return all objects which reference a particular object. For example, let's have: A --> B, C---> B, i.e. B is referenced by A and C. I want to return A and C by just having object B. If is there any call for this or any way to do this? I have looked aand played around with EcoreUtil, but it seems like there is nothing for this. Am I mistaken? Can you give an example?

thanks in advance
Re: return all objects which reference a given one [message #1005040 is a reply to message #1005036] Thu, 24 January 2013 06:13 Go to previous messageGo to next message
Eclipse UserFriend
You missed org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer.
It has what you need.
Re: return all objects which reference a given one [message #1005054 is a reply to message #1005040] Thu, 24 January 2013 06:43 Go to previous message
Eclipse UserFriend
EPIC FAIL! yeah, you are right!Smile
Previous Topic:EMF Maven archetype?
Next Topic:Call for Submissions: Modeling Symposium EclipseCon North America 2013
Goto Forum:
  


Current Time: Thu Jul 24 19:35:55 EDT 2025

Powered by FUDForum. Page generated in 0.03143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top