Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EOL] Getting container of a model element
[EOL] Getting container of a model element [message #1829984] Wed, 15 July 2020 08:59 Go to next message
Jean Walter is currently offline Jean WalterFriend
Messages: 10
Registered: May 2020
Junior Member
I am currently trying to work my way around ETL to migrate models from one metamodel version to another. I now have a rough understanding of how it works, and have been able to write some easy migration rules. The proble I have right now is that I do not know how to get the container of a given model element.
This would be useful for my transformations, for example to create new elements and add them in the right container.
Thanks for your help.

[Updated on: Wed, 15 July 2020 09:00]

Report message to a moderator

Re: [EOL] Getting container of a model element [message #1829985 is a reply to message #1829984] Wed, 15 July 2020 09:02 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Jean,

You can use EMF's eContainer() [1] method for this.

Thanks,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/epsilon-emf/#how-can-i-get-the-container-of-a-model-element
Re: [EOL] Getting container of a model element [message #1830100 is a reply to message #1829985] Fri, 17 July 2020 09:49 Go to previous message
Jean Walter is currently offline Jean WalterFriend
Messages: 10
Registered: May 2020
Junior Member
Thanks a lot, this worked for me.
Previous Topic:Troubles installing via update site
Next Topic:[EOL] Try/catch behaviour
Goto Forum:
  


Current Time: Fri Apr 26 16:21:15 GMT 2024

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

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

Back to the top