Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Is it possible to change the return type of EObjectContainmentEList?
Is it possible to change the return type of EObjectContainmentEList? [message #1814885] Sat, 21 September 2019 14:47 Go to next message
Phil Beauvoir is currently offline Phil BeauvoirFriend
Messages: 52
Registered: October 2012
Member
In my Ecore model I have an EClass that returns a one to many List (EReference). The generated code returns an EObjectContainmentEList. I'd like to return a sub-class of EObjectContainmentEList that I have written instead.

I can do that by manually replacing the return type in the generated code and putting "@generated NOT" there but is there something I can add to the *.ecore file to tell it to use my sub-class instead?

[Updated on: Sat, 21 September 2019 14:53]

Report message to a moderator

Re: Is it possible to change the return type of EObjectContainmentEList? [message #1814900 is a reply to message #1814885] Sun, 22 September 2019 05:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30806
Registered: July 2009
Senior Member
No.
Re: Is it possible to change the return type of EObjectContainmentEList? [message #1814901 is a reply to message #1814900] Sun, 22 September 2019 05:36 Go to previous message
Phil Beauvoir is currently offline Phil BeauvoirFriend
Messages: 52
Registered: October 2012
Member
Thanks, Ed. :-)
Previous Topic: How Can I apply xsd:choice element to my emf model editor.
Next Topic:Overriding Feature lowerBound
Goto Forum:
  


Current Time: Tue Jan 21 03:09:01 GMT 2020

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

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

Back to the top