Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirius layout info disappear or dislocation when sychronizing from Xtext(Sirius layout info disappear or dislocation when sychronizing from Xtext)
Sirius layout info disappear or dislocation when sychronizing from Xtext [message #1767262] Tue, 04 July 2017 10:32 Go to next message
jingjing wang is currently offline jingjing wangFriend
Messages: 28
Registered: July 2017
Junior Member
Hi,
I have a question about synchronization between Xtext editor and Sirius editor.

The sychronization between Xtext editor and sirius editor is performed by save operation. But I find when editing in the Xtext editor, perform delete opertaion in the middle of text info, then execute save operation, some elements location disappear or dislocate in the diagram edior.

After analysis, we find the relationship between diagram element and model element is index number of model member, it is stored in representation.aird. So it can explain the layout disappear or dislocation.

Is there any solution to solve the problem of layout disappear or dislocation?
Re: Sirius layout info disappear or dislocation when sychronizing from Xtext [message #1767712 is a reply to message #1767262] Mon, 10 July 2017 08:20 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

You might use eKeys in your ecore model to allow Sirius and other tools to reference your model elements with an id/name intead of the containment index.

Regards,
Re: Sirius layout info disappear or dislocation when sychronizing from Xtext [message #1767788 is a reply to message #1767712] Tue, 11 July 2017 07:20 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

As mentioned by Cedric in an other post yesterday:
Quote:
a second option is to define the fragment provider for your DSL, this will have the benefit that you won't have to add back the eKeys in the .ecore when Xtext re-generates it.
Jan described the process in a blog post lately:

https://typefox.io/linking-xtext-models-with-other-emf-models


Regards,

Maxime
Previous Topic:The fill color field from properties view not synchronized with sirius graphical element color.
Next Topic:Confusion about my model and it's representations
Goto Forum:
  


Current Time: Fri Apr 19 21:19:41 GMT 2024

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

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

Back to the top