Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » SYNC Between SIRIUS AND Xtext editor(SYNC Between SIRIUS AND Xtext editor)
SYNC Between SIRIUS AND Xtext editor [message #1803848] Tue, 12 March 2019 12:20 Go to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 81
Registered: June 2018
Member
Hii

Iam using my own resource which is not of type XMI Resource.If I create Eobjects in Sirius diagram editor it is reflecting in Xtext editor but vice versa is not working .If I try to edit in Xtext editor Sirius diagram is lost. I feel my diagram is lost due to resource.

could anyone please help me in this.


Re: SYNC Between SIRIUS AND Xtext editor [message #1804384 is a reply to message #1803848] Mon, 25 March 2019 09:26 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Sharmila,

Your diagram is lost because when you save your Xtext editor, it triggers a reload of the resouce by Sirius, by default Xtext recreates a new model graph and the object instances you saw on your diagram are replaced but not known by your editor. If you refresh your representation, regarding how you wrote the semantic candidates expression of your mapping, the new elements might be retrieved but the layout willbe lost, as it will recreate new graphical objects.

Did you look to the following resources:

- White Paper on Sirius nad Xtext: https://www.obeodesigner.com/resource/white-paper/WhitePaper_XtextSirius_EN.pdf
- Integrating Xtext and Sirius: Strategies and Pitfalls: https://www.youtube.com/watch?v=i_9S5aXAn40
- Xtext Editors within Sirius Diagrams the Best of both Worlds! https://www.nikostotz.de/blog/xtext-editors-within-sirius-diagrams/

There are differents strategies one of them could be to have an embedded editor (like proposed in https://github.com/ObeoNetwork/Xtext-Sirius-integration).

Regards


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Sirius to UML Designer
Next Topic:Diagramm for XText-Model: Load Model too slow
Goto Forum:
  


Current Time: Fri Apr 26 21:50:33 GMT 2024

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

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

Back to the top