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
@@ -79,6 +79,7 @@ This feature can be de-activated by setting the property `org.eclipse.syson.test
79
79
The cache holding standard libraries can be invalidated for a specific test method or test class by using the `@InvalidateStandardLibrariesCache` annotation, ensuring the editing contexts are loaded from scratch.
80
80
- https://github.com/eclipse-syson/syson/issues/2154[#2154] [diagrams] Improve the _Duplicate Element_ diagram tool to support multi-selection in standard diagrams.
81
81
- https://github.com/eclipse-syson/syson/issues/2160[#2160] [diagrams] Improve the _View As_ diagram tool on graphical nodes to support multi-selection in standard diagrams.
82
+
- https://github.com/eclipse-syson/syson/issues/2170[#2170] [diagrams] Improve the _Add existing elements_ diagram tool on graphical nodes to support multi-selection in standard diagrams.
82
83
- https://github.com/eclipse-syson/syson/issues/2148[#2148] [diagrams] Merge the two perform action creation tools into a single tool, leveraging the updated selection dialog.
83
84
- https://github.com/eclipse-syson/syson/issues/2152[#2152] [diagrams] Leverage the latest selection dialog changes to allow creating a sub action with and without associating the sub action with another `ActionUsage`.
Copy file name to clipboardExpand all lines: backend/application/syson-application/src/test/java/org/eclipse/syson/application/controllers/diagrams/general/view/GVAddExistingElementsTests.java
+130-7Lines changed: 130 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -194,7 +194,7 @@ public void addExistingElementsRecursiveOnDiagram() {
@@ -207,6 +207,95 @@ public void addExistingElementsRecursiveOnDiagram() {
207
207
.verify(Duration.ofSeconds(10));
208
208
}
209
209
210
+
@DisplayName("GIVEN a General View diagram with multiple selected nodes, WHEN Add existing elements is invoked, THEN existing elements are added for each selected node")
@DisplayName("GIVEN a General View diagram with multiple selected nodes, WHEN Add existing elements recursive is invoked, THEN existing elements are added recursively for each selected node")
@DisplayName("GIVEN an ActionUsage with its action flow compartment displayed and a nested ActionUsage in it, WHEN Delete from diagram the nested ActionUsage then use the Add existing element tool on the action flow compartment, THEN the nested ActionUsage should only be displayed in the action flow compartment")
Copy file name to clipboardExpand all lines: backend/services/syson-diagram-services/src/main/java/org/eclipse/syson/diagram/services/DiagramMutationExposeService.java
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,41 @@ public Element addToExposedElements(Element element, boolean recursive, IEditing
205
205
returnelement;
206
206
}
207
207
208
+
/**
209
+
* Adds/displays existing elements from the given element on the matching selected graphical node.
210
+
*
211
+
* @param element
212
+
* the given {@link Element}.
213
+
* @param recursive
214
+
* if the process should add elements recursively.
215
+
* @param editingContext
216
+
* the {@link IEditingContext} of the tool.
217
+
* @param diagramContext
218
+
* the {@link DiagramContext} of the tool.
219
+
* @param selectedNodes
220
+
* the selected graphical nodes matching the selected semantic elements.
221
+
* @param convertedNodes
222
+
* the map of all existing node descriptions in the DiagramDescription of this Diagram.
Copy file name to clipboardExpand all lines: backend/services/syson-diagram-services/src/main/java/org/eclipse/syson/diagram/services/aql/DiagramMutationAQLService.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,14 @@ public Element addToExposedElements(Element element, boolean recursive, IEditing
Copy file name to clipboardExpand all lines: backend/views/syson-diagram-common-view/src/main/java/org/eclipse/syson/diagram/common/view/services/description/ToolDescriptionService.java
0 commit comments