Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to generate code with specific EMap implementation(Make genmodel generate specific implementation of EMap for all features of map type)
How to generate code with specific EMap implementation [message #1796103] Fri, 05 October 2018 07:30 Go to next message
Dan Derut is currently offline Dan DerutFriend
Messages: 1
Registered: October 2018
Junior Member
I have a .xcore model with feature declared as
contains MyEntry < K , V >[] map

where
class MyEntry<K , V> wraps java.util.Map.Entry

So feature called "map" generates into new EcoreEMap in getMap() method. I want it to generate code with specific implementation of EMap. While inspecting the code i found that it is generated through GenClassImpl#getListConstructor(). Is there any way to override this method and how to "pull" in my solution? Overriding get method for each feature of map type is not the solution i want.
Re: How to generate code with specific EMap implementation [message #1796437 is a reply to message #1796103] Fri, 12 October 2018 22:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
No, for all multi-valued features, including EMaps, the built-in implementations are always used.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[Xcore/Maven] Xcore code generation with maven
Next Topic:Modern automated code generation from ecore model
Goto Forum:
  


Current Time: Fri Apr 19 14:40:44 GMT 2024

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

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

Back to the top