You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this message finds you well. I am currently working on a project using Sirius and encountered an issue related to diagram creation in the tree-description.
In the past, I used Diagram Creation in the tree-description to create diagrams, and by using Representation, I could display the newly created diagrams in the tree. https://github.com/eclipse-sirius/sirius-desktop/discussions/486
However, I recently encountered a problem where newly created diagrams can have duplicate names. This can lead to confusion and errors in the model.
My Requirement:
I would like to implement a mechanism such that:
When a user creates a new diagram in the tree, the system checks if a diagram with the same name already exists.
If a duplicate name is detected, the user is prevented from proceeding with the creation, and a warning message is displayed, such as:
"The name already exists. Please choose a different name."
My Questions:
Is there a built-in feature in Sirius to enforce unique names for diagrams created through the tree-description?
If not, could you guide me on how to implement such a validation? Specifically, where and how can I intercept the diagram creation process to check for duplicate names and display a warning?
I would greatly appreciate any insights, examples, or references to documentation that could help me resolve this issue. Thank you for your time and support!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear Sirius Community,
I hope this message finds you well. I am currently working on a project using Sirius and encountered an issue related to diagram creation in the tree-description.
In the past, I used Diagram Creation in the tree-description to create diagrams, and by using Representation, I could display the newly created diagrams in the tree. https://github.com/eclipse-sirius/sirius-desktop/discussions/486
However, I recently encountered a problem where newly created diagrams can have duplicate names. This can lead to confusion and errors in the model.
My Requirement:
I would like to implement a mechanism such that:
When a user creates a new diagram in the tree, the system checks if a diagram with the same name already exists.
If a duplicate name is detected, the user is prevented from proceeding with the creation, and a warning message is displayed, such as:
"The name already exists. Please choose a different name."
My Questions:
Is there a built-in feature in Sirius to enforce unique names for diagrams created through the tree-description?
If not, could you guide me on how to implement such a validation? Specifically, where and how can I intercept the diagram creation process to check for duplicate names and display a warning?
I would greatly appreciate any insights, examples, or references to documentation that could help me resolve this issue. Thank you for your time and support!
Looking forward to hearing from you.
Best regards,
hoajie
Beta Was this translation helpful? Give feedback.
All reactions