Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EcoreUtil.resolveAll() (Why is eObject.eContainer() called in the EcoreUtil.resolveAll() method)
EcoreUtil.resolveAll() [message #1745969] Thu, 20 October 2016 03:02 Go to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hi,

EcoreUtil.resolveAll (EObject eObject) makes a call to "eObject.eContainer()" right at the start of the method. Why is it done ?

Didn't find any explanation in EMF book/google.

Please comment.

Tx in advance.


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: EcoreUtil.resolveAll() [message #1745972 is a reply to message #1745969] Thu, 20 October 2016 05:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
The container reference van be modeled as a proxy resolving reference so accessing the eContainer will resolve that proxy, if there is one.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EcoreUtil.resolveAll() [message #1745973 is a reply to message #1745972] Thu, 20 October 2016 05:11 Go to previous message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Tx for the prompt reply

Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:[XCore] Cross-Reference vs Container Reference
Next Topic:EMF MetaModeling
Goto Forum:
  


Current Time: Thu Apr 18 15:59:17 GMT 2024

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

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

Back to the top