|Proper Integration with Sirius [message #1804158]
||Tue, 19 March 2019 14:47
| Konrad Jünemann
Registered: December 2018
I build an XText Metamodel that describes Entities and fields. Each Entity is stored in a different file. From these entities, we generate DB Table Descriptions, which are also stored in a separate but connected XText Metamodel. The model is very large, all in all we got almost 1000 Entities, from which we generate almost 3000 tables.
I would like to create Diagrams for this model with Sirius. In order to keep things simple, the user should *not* be able to modify the entities from within the diagram. The diagrams are thus just used to visualize the model. (Of course, we dont want to show the whole 1000 entities at once, so I will write some service that filters which entities are shown in each diagram.)
I followed the Sirius Starter Totorial here, but everytime the project is opened Sirius forcefully resolves the whole model, including all references in every resource. This can take a long time, up to multiple minutes. Furthermore, Sirius does not do this in a background job, but delays the startup of Eclipse, at least on some occasions.
Surely, some of you XText guys have already done something similar. How should I properly use Sirius with an XText-managed model? I don't understand why Sirius should have to build the whole model again in an eager fashion - after all, XText builds the model lazyly and in a much faster way and even stores the index on file. Am I doing something simple wrong?
Powered by FUDForum
. Page generated in 0.02187 seconds