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
Copy file name to clipboardExpand all lines: backend/services/syson-diagram-services/src/main/java/org/eclipse/syson/diagram/services/DiagramQueryLabelService.java
+27-10Lines changed: 27 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,16 @@ public class DiagramQueryLabelService implements IDiagramLabelService {
Copy file name to clipboardExpand all lines: backend/services/syson-diagram-services/src/test/java/org/eclipse/syson/diagram/services/DiagramQueryLabelServiceTest.java
@DisplayName("GIVEN a ConstraintUsage with no expression, WHEN its label is computed, THEN the label contains the name of the constraint")
274
+
@DisplayName("GIVEN a ConstraintUsage without expression, with declared name, without requiring another constraint, WHEN its label is computed, THEN the label contains the name of the constraint")
@DisplayName("GIVEN a ConstraintUsage without expression, with declared name, requiring another constraint, WHEN its label is computed, THEN the label contains the constraint name with subsetted refence name")
@DisplayName("GIVEN a ConstraintUsage without expression, without declared name, requiring another constraint, WHEN its label is computed, THEN the label contains only subsetted refence name")
** Improve diagram-to-diagram drag and drop to support dropping multiple graphical nodes at once.
53
53
** Improve feedback message reporting while moving elements in diagrams.
54
+
** Fix and improve the labeling logic inside `frames`, `require constraints`, and `assume constraints` compartments.
55
+
Previously, the label was always the name of the `ConcernUsage` or the `ConstraintUsage` displayed in the compartment.
56
+
Now, the label dynamically adapts based on whether the `ConcernUsage` or `ConstraintUsage` has a name and an owned reference subsetting:
57
+
*** Elements having both a name and an owned reference subsetting now display using the standard subsetting notation (e.g., `ElementName ::> SubsettingName`).
58
+
*** Elements without name and an owned reference subsetting display only the reference subsetting name
59
+
*** Elements without reference subsetting display their name.
0 commit comments