|
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   |
|
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   |
Rajesh R 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 #1826910 is a reply to message #1826820] |
Mon, 04 May 2020 12:55  |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.01707 seconds