Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » how to force is-dirty in Sirius framework representation diagram(how to force is-dirty in Sirius framework representation diagram )
how to force is-dirty in Sirius framework representation diagram [message #1826674] Tue, 28 April 2020 16:15 Go to next message
Rajesh R is currently offline Rajesh RFriend
Messages: 3
Registered: April 2020
Junior Member
how to force is-dirty in Sirius framework representation diagram.

In Sirius framework - UI changes and data after the execution is not refreshing and not storing .odesign. But the current session holding the values. Once close and open the project again last modified changes are not available.
Re: how to force is-dirty in Sirius framework representation diagram [message #1826711 is a reply to message #1826674] Wed, 29 April 2020 10:25 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

I am not sure to understand what you say or are trying to do. I doubt that you need to force the dirty state of your session, the issue and solution are probably somewhere else. If you close with unsaved modifications, you should have a popup warning you about it and giving you the choice to save and close, close without saving or cancel closing. If it is not the case and that you lose modifications when you reopened the project, this should means that you made some changes somehow out of the Sirius session (custom code?).

Best regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: how to force is-dirty in Sirius framework representation diagram [message #1826777 is a reply to message #1826711] Thu, 30 April 2020 09:57 Go to previous messageGo to next message
Rajesh R is currently offline Rajesh RFriend
Messages: 3
Registered: April 2020
Junior Member
Hi Steve Monnier,

Thanks for reply,

Below are the problem we are facing,

Drop the node on the canvas that already created. Apply some changes in the properties. Then canvas has trigger to send a data back-end. Once triggered, class has q storing method to store the data from session. For the first time its working fine. After that again modify some properties in the same canvas without closing and click on the trigger to sending data to back-end, in this scenario. The session isDirty property is already SYNC. Due to this session can't save the modified data's.


Thanks and Regards,
Rajesh R

[Updated on: Thu, 30 April 2020 10:00]

Report message to a moderator

Re: how to force is-dirty in Sirius framework representation diagram [message #1826785 is a reply to message #1826777] Thu, 30 April 2020 12:42 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

Can you detail what you mean by "Once triggered, class has q storing method to store the data from session." and "click on the trigger to sending data to back-end". Does that mean that you have some custom code that modify something not in the session's models?

Best regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: how to force is-dirty in Sirius framework representation diagram [message #1826820 is a reply to message #1826785] Fri, 01 May 2020 11:22 Go to previous messageGo to next message
Rajesh R is currently offline Rajesh RFriend
Messages: 3
Registered: April 2020
Junior Member
Hi Steve,

No we not modifying the session model. In editor tab bar, application have a menu called Run. If its clicked ,it will saves the model and it will create some files out of the model. Before clicking Run button, model is saving properly and also * is coming. if we changing in the properties of the model in the representation. Once run button is clicked, we are trying to change properties of the model element in the representation, * is not coming and model is not storing while clicking the run button for the second time. But the change are impacted in the output files. But model is not storing. If we close and open the project, last modified data are lost. Now to save the model in the second run? While debugging session isDirty flag is SYNC for the second time. So any possibilities to change the flag or refresh the representation.
Re: how to force is-dirty in Sirius framework representation diagram [message #1826910 is a reply to message #1826820] Mon, 04 May 2020 12:55 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

I am sorry but I still do not understand what your mean. You start by saying that "No we not modifying the session model" and later you say "we are trying to change properties of the model element in the representation, * is not coming". If you want to change a property of a model element (semantic or graphical) you need to do it in the context of the session and once applied it will become dirty (the symbol * wil appear on the editor tab). How are you trying to change the properties? Do you execute a RecordingCommand on the session command stack (session.getTransactionalEditingDomain().getCommandStack())? What is the property your are trying to change? Maybe this can be done by a Sirius tool instead of a custom button, making it more easy to integrate.

Best regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Unable to add a new item to an empty table view
Next Topic:Creating rows and columns in empty table representation
Goto Forum:
  


Current Time: Tue Apr 23 16:03:48 GMT 2024

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

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

Back to the top