Skip to main content



      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 10:47 Go to next message
Eclipse UserFriend
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 10:53] by Moderator

Re: Is it possible to change the return type of EObjectContainmentEList? [message #1814900 is a reply to message #1814885] Sun, 22 September 2019 01:34 Go to previous messageGo to next message
Eclipse UserFriend
No.
Re: Is it possible to change the return type of EObjectContainmentEList? [message #1814901 is a reply to message #1814900] Sun, 22 September 2019 01:36 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 05:50:55 EDT 2025

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

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

Back to the top