Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:08 Go to next message
Anatoly Pulkov is currently offline Anatoly PulkovFriend
Messages: 3
Registered: December 2012
Junior Member
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 11:13 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
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 11:43 Go to previous message
Anatoly Pulkov is currently offline Anatoly PulkovFriend
Messages: 3
Registered: December 2012
Junior Member
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: Fri Apr 26 18:47:56 GMT 2024

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

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

Back to the top