Close Sirius Dialog Widget from Java Services [message #1850915] |
Tue, 22 March 2022 03:57  |
Eclipse User |
|
|
|
Hi everyone, I am struggling to save changes and close the sirius dialog box in java service method.
I have a Dialog Box in the odesign file. The user can enter inputs by using this dialog. After the user clicks to the OK Button, my service method starts to running, In this method, I checked the inputs. If all inputs is valid according to my rules, I want to save the new instance to the model and close the diagram.
I tried to solve this problem by using the following code;
Display.getCurrent().getActiveShell().close();
This code helps to close dialog box but the new instance won't be created in this situation.
If I select the "Close Dialog On Click "Option of the OK Button, this solves the problem but in this situation my validation rules will not be performed.
How can I solve this problem?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06804 seconds