Modelling an EMF model from memory [message #1829771] |
Fri, 10 July 2020 07:19  |
Eclipse User |
|
|
|
Is it possible to represent an EMF model with Sirius, where the model is not persistent on file?
I am quite familiar with EMF and Sirius, but I normally work with EMF models persistent on file.
In this particular scenario, I would like to have a Sirius Diagram of EMF data (based on a specific metamodel), where the EMF data (eclasse, etc) is created dynamically, based on some calls to web services.
Is that possible?
My idea was to based on the Sirius Digram on an empty EMF resource (no eclasses in it). The Sirius Description then calls a number of java services that return sets of Eclasses, etc.
Is this a sustainable approach? Is there a better one?
|
|
|
|
|
|
|
Re: Modelling an EMF model from memory [message #1830572 is a reply to message #1830390] |
Wed, 29 July 2020 06:18  |
Eclipse User |
|
|
|
Hi
I've been trying to update the EMF generated methods to create Eobjects on the fly, but as you explained Maxime this fails because Sirius tries to resolve the EObject, and identify which Resource it belongs to.
I'll give this InMemoryResource a try. Any examples of such use? I tried to figure how and when to create such EMF resources in relation to the Sirius Session, but can't get the big picture in place.
|
|
|
Powered by
FUDForum. Page generated in 0.06871 seconds