Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Find referenced Objects
Find referenced Objects [message #654276] Mon, 14 February 2011 20:59 Go to next message
Philipp M. Fischer is currently offline Philipp M. FischerFriend
Messages: 67
Registered: November 2010
Location: Germany
Member
Hi all,

Having a EMF model, i was wondering how i can easily find all refrences to a specific object within my model. I was expecting to have a method like eReferences belonging to my object bu ti don't.
So how are you finding refrences to given objects?

Thanks

Phil
Re: Find referenced Objects [message #654297 is a reply to message #654276] Tue, 15 February 2011 00:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Phil,

Have a look at the cross referencers in EcoreUtil, e.g., the
UsageCrossReferencer. ECrossReferenceAdapter is useful if you need this
kind of information for all objects all the time...


Phil M. Fischer wrote:
> Hi all,
>
> Having a EMF model, i was wondering how i can easily find all
> refrences to a specific object within my model. I was expecting to
> have a method like eReferences belonging to my object bu ti don't.
> So how are you finding refrences to given objects?
>
> Thanks
>
> Phil


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[EMF Compare] Change comparison resource order
Next Topic:[Henshin] Loading a model from an Xtext resource
Goto Forum:
  


Current Time: Fri Apr 26 01:35:09 GMT 2024

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

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

Back to the top