Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext integration with Sirius and Papyrus
Xtext integration with Sirius and Papyrus [message #1838380] Tue, 23 February 2021 20:34 Go to next message
John Doe is currently offline John DoeFriend
Messages: 138
Registered: October 2020
Senior Member
Hi all,

I was interested to know if any of you has worked before regarding the integration Xtext-Sirius and Xtext-Papyrus.

I have tried implementing both these integrations, but I am still a bit confused regarding how they work together. To go a bit more into details:

Xtext - Sirius integration

In order to be integrate Xtext with Sirius, I have defined a DSL with Xtext, created a textual model, and then imported the ecore model generated from Xtext into Sirius and after creating the graphical representations for each element in the .odesign file, everything would work perfectly fine.

But how do they really work? Does it have anything to do with AST? Xtext generated an AST and Sirius makes the changes to that AST, which are later on reflected on the textual model and vice versa? Do you have an idea about that?

Xtext - Papyrus integration

In order to integrate Xtext with Papyrus, I define a DSL in Xtext and create a textual model. Afterwards I define a similar DSL in Papyrus and create a graphical model. Afterwards, I use a transformation language such as QVTo or Epsilon, to synchronize these two.

How does it work in this case? So where is the difference between Sirius and Papyrus in this case? What happens in the background that in the first case I do not need model transformations while in the second yes?
With the Xtext-Sirius integration are they both using the Xtext resource, while with Xtext- Papyrus integration they are using the Xtext resource and Papyrus resource and that is why they need model transformation?

And a final question is what do you understand with XText - GMF integration? How would that work?

If someone has a more detailed information regarding this topic, you would be very helpful.

Note: By integration I mean being able to edit the model via both editors and the synchronisation to be on the fly and not upon saving.


Thank you in advance!

[Updated on: Tue, 23 February 2021 21:49]

Report message to a moderator

Re: Xtext integration with Sirius and Papyrus [message #1838397 is a reply to message #1838380] Wed, 24 February 2021 07:25 Go to previous message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 133
Registered: February 2016
Senior Member
Hello John,

you can find more information about the Xtext-Sirius integration under the following links:

Textual AND graphical modeling: Xtext editors within Sirius Diagrams (Youtube)
https://github.com/altran-mde/xtext-sirius-integration

Integrating Xtext and Sirius: Strategies and Pitfalls (Youtube)
https://github.com/ObeoNetwork/Xtext-Sirius-integration

Hope that helps,
Tamás
Previous Topic:Scoping / Linking
Next Topic:Is an ICommentAssociater used during serialization (anymore)?
Goto Forum:
  


Current Time: Fri May 14 11:24:19 GMT 2021

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

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

Back to the top