|
Re: Close Sirius Dialog Widget from Java Services [message #1851305 is a reply to message #1850915] |
Fri, 01 April 2022 19:58   |
|
Hi,
You do not need to "save" anything in the case when the changes are valid.
All the model changes performed inside such a dialog are directly applied to the edited model elements (even though they appear in dialog they behave like properties views in this regard).
What you can try is to rollback the changes if they are *not* valid: in your Java service try to "throw new OperationCanceledException()". This is actually what the "Cancel" button does to revert the already applied changes if the user cancels the dialog.
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.01831 seconds