|Split EClass definition between more than one resource [message #1243038]
||Mon, 10 February 2014 12:35
| Paweł Doleciński
Registered: January 2014
I've got a strange requirement in creating meta-models.
I am working only with Dynamic EMF and creating my classes in CDO directly. At runtime I need to retrieve EClass from CDO and display a reflective table based on that. So far I am not interested in instances.
Now the requirement.
Suppose I have an EClass Car with some attributes as my core module.
- attr1 : EString
- attr2 : EString
I have a GUI action looking for that class in CDO. Based on that, I will display a table with two columns: attr1 and attr2.
Now I'd like to add Module 2 which will contribute to the EClass Car by adding additional attribute.
Important thing is that I cannot extend from this class and cannot change the action in GUI. So after opening a table for EClass Car I'd like to see three columns.
What I can do is to provide information about modules to be used and a merging order.
I've seen EMF Compare EPatch solution which looked as a solution for me, but it seems to be removed from EMF Compare.
So I need to somehow merge meta-model definitions at runtime.
Does anyone ever meet with a similar requirement? Is there any already existing solution or something what could be adapted to handle it?
Or maybe I need to use annotations or introduce fragment's model and handle this logic on my own?
I would really appreciate any clue how to bite this problem.
[Updated on: Mon, 10 February 2014 12:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02146 seconds