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: CHANGELOG.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@
31
31
Before, the selection dialog option with selection allowed choosing between all _timeslice/snapshot_ types.
32
32
Now, the choice is restricted to the _timeslice/snapshot_ type that match the graphical node type on which the tool is applied.
33
33
- https://github.com/eclipse-syson/syson/issues/2119[#2119] [details] Display expressions values in the _Details_ view and allow to edit them from there.
34
+
- https://github.com/eclipse-syson/syson/issues/2251[#2251] [explorer] Allow expression-related operations on their parent element
Copy file name to clipboardExpand all lines: backend/application/syson-application-configuration/src/main/java/org/eclipse/syson/application/configuration/SysMLv2PropertiesConfigurer.java
Copy file name to clipboardExpand all lines: backend/application/syson-application-configuration/src/main/java/org/eclipse/syson/application/expressions/services/ExpressionTextualRepresentationEventHandler.java
Copy file name to clipboardExpand all lines: backend/application/syson-application/src/test/java/org/eclipse/syson/application/controllers/expressions/ExpressionsControllersIntegrationTests.java
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -553,18 +553,21 @@ public void topLevelExpressionTextualRepresentation() {
553
553
treeId.set(tree.getId());
554
554
});
555
555
556
-
// The Tank part and its attribute are not themselves expressions => ""
Copy file name to clipboardExpand all lines: backend/application/syson-sysml-import/src/main/java/org/eclipse/syson/sysml/services/EditExpressionEventHandler.java
Copy file name to clipboardExpand all lines: backend/views/syson-tree-explorer-view/src/main/java/org/eclipse/syson/tree/explorer/view/menu/context/SysONExplorerTreeItemContextMenuEntryProvider.java
When an `Expression` element is selected(for example from the {explorer} view), the {details}} view displays its textual representation, with a button to open the expression edition modal (see below) directly on it:
22
+
When an `Expression` element or an `Element` which contains a single `Expression` element is selected(for example from the {explorer} view), the {details}} view displays the textual representation of the expression, with a button to open the expression edition modal (see below) directly on it:
23
23
+
24
24
image::expression-details.png[Expression value displayed in the _Details_ veiw, width=80%]
25
25
@@ -39,10 +39,10 @@ image::edit-expression-modal-error.png[Edit expression modal showing an error me
39
39
40
40
== Edition
41
41
42
-
To edit an already existing expression, invoke the _Edit expression_ context menu action directly on the existing expression.
42
+
To edit an already existing expression, invoke the _Edit expression_ context menu action directly on the existing expression or on its parent element.
43
43
The same modal as for expression creation will open, but with the current textual representation of the expression pre-filled.
44
44
45
-
Edit the textual representation of the expression as required, and click on the _Update_ button to validate.
45
+
Edit the textual representation of the expression as required, and click on the _Update_ button or hit _Ctrl-RET_ to validate.
46
46
47
47
As for expression creation, the change will only be applied if there are no errors detected; otherwise the modal will display any errors (e.g. names used in the expression that can not be resolve to existing elements) so that you can fix the input.
Copy file name to clipboardExpand all lines: doc/content/modules/user-manual/pages/release-notes/2026.7.0.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,21 +54,21 @@ In both cases, to display the `FramedConcernMembership`, deactivate the `Hide Me
54
54
** It is now possible to create, edit and delete _Expressions_ using their textual syntax from the _Explorer_ view.
55
55
To _create_ an expression, invoke the _New expression_ context menu action on a compatible element (supported elements are `Attributes`, `Constraints` and `Transitions`).
56
56
A modal will open where you can enter the textual representation of the expression to create.
57
-
Click on the _Update_ button to validate.
57
+
Click on the _Update_ button or hit _Ctrl-RET_ to validate.
58
58
If the entered expression is valid, it will be created and the modal will automatically close.
59
59
If the entered expression is _not_ valid, the modal will remain open and show the error(s) in an expandable accordion.
60
60
Fix any error reported before clicking on _Update_ again (or canceling the operation).
image::edit-expression-modal-error.png[Edit expression modal showing an error message if the new expression is invalid, width=80%]
64
64
+
65
-
To _edit_ an existing expression, simply invoke the _Edit expression_ context menu action directly on the existing expression; the same modal will open but with the current textual representation of the expression pre-filled.
65
+
To _edit_ an existing expression, simply invoke the _Edit expression_ context menu action directly on the existing expression or on its parent element; the same modal will open but with the current textual representation of the expression pre-filled.
66
66
+
67
67
To _delete_ an existing expression, you can simply invoke the normal _Delete_ menu item action on the expression itself or the new _Delete expression_ on its parent element.
68
68
69
69
* In the _Details_ view:
70
70
71
-
** When an `Expression` element is selected (for example from the _Explorer_ view), the _Details_ view displays its textual representation, with a button to open the expression edition modal (see above) directly on it:
71
+
** When an `Expression` element or an `Element` which contains a single `Expression` element is selected (for example from the _Explorer_ view), the _Details_ view displays the textual representation of the `Expression`, with a button to open the expression edition modal (see above) directly on it:
72
72
+
73
73
image::expression-details.png[Expression value displayed in the _Details_ veiw, width=80%]
0 commit comments