Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Forward Cross References
Forward Cross References [message #500881] Mon, 30 November 2009 03:54 Go to next message
Michael Spertus is currently offline Michael SpertusFriend
Messages: 78
Registered: July 2009
Member
I have used ECrossReferenceAdapters to get "inverse" references giving all of the objects pointing to a given object. However, now I need to get all the "forward" cross references giving all the objects pointed to by a given object (IOW, references from the giving object instead of to the given object). What is the most straightforward way to do this?

Thanks,

Mike
Re: Forward Cross References [message #500884 is a reply to message #500881] Mon, 30 November 2009 05:28 Go to previous messageGo to next message
Michael Spertus is currently offline Michael SpertusFriend
Messages: 78
Registered: July 2009
Member
Oops. EObject.eCrossReferences() seems to be the answer. Sorry.
Re: Forward Cross References [message #500936 is a reply to message #500884] Mon, 30 November 2009 11:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30681
Registered: July 2009
Senior Member
Michael,

Yes, that gets all values of the non-containment references.
EObject.eContainer gets the one value of container reference and
EObject.eContents gets the values of all the containment references.
Their union is all outgoing references.


Michael Spertus wrote:
> Oops. EObject.eCrossReferences() seems to be the answer. Sorry.
Previous Topic:Decorating a tree
Next Topic:tranisent reference
Goto Forum:
  


Current Time: Thu Dec 05 21:48:14 GMT 2019

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

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

Back to the top