From aa57d133a21ef1a59ba241e239ba95cb10fefe71 Mon Sep 17 00:00:00 2001 From: Guillaume Coutable Date: Thu, 27 Aug 2026 15:52:21 +0200 Subject: [PATCH 1/2] [doc] Update the release notes Signed-off-by: Guillaume Coutable --- .../user-manual/pages/release-notes/2026.9.0.adoc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/doc/content/modules/user-manual/pages/release-notes/2026.9.0.adoc b/doc/content/modules/user-manual/pages/release-notes/2026.9.0.adoc index cebb8f3d6..0555ca715 100644 --- a/doc/content/modules/user-manual/pages/release-notes/2026.9.0.adoc +++ b/doc/content/modules/user-manual/pages/release-notes/2026.9.0.adoc @@ -96,9 +96,6 @@ image::release-notes-action-inherited-item-border-nodes.png[ItemUsage border nod + image::release-notes-port-inherited-item-border-nodes.png[ItemUsage border node inheritance on PortDefinition and PortUsage, width=80%,height=80%] -** Improve the edge tool creating a `FlowUsage`, by creating a `ReferenceUsage` used for the redefinition of the `FlowEnd` only when it is needed. -** Fix the edge tool creating a `ConnectionUsage` between an `ActionUsage` graphical node and the _done_ `ActionUsage` graphical node. - == Bug fixes * In diagrams: @@ -115,8 +112,9 @@ The affected connections were missing their source and target and were therefore ** Fix an issue that prevented a nested `AttributeUsage` from becoming visible when it was first dropped from the _Explorer_ onto a _General View_ diagram. ** Fix `Comment` graphical nodes so changing their background color no longer changes their border color. ** Rename the _New Perform action_ tool to _New Perform Action_ for consistency with other tools. -** Do not propose the the _New Subclassification_ edge tool from `EnumerationDefinition` graphical nodes' palette, which cannot subclassify another `EnumerationDefinition`. +** Do not propose the _New Subclassification_ edge tool from `EnumerationDefinition` graphical nodes' palette, which cannot subclassify another `EnumerationDefinition`. ** Do not propose the _New Subclassification_ edge tool in the palette when targeting a `Usage` graphical node from a `Definition` graphical node. +** Fix the edge tool creating a `ConnectionUsage` between an `ActionUsage` graphical node and the _done_ `ActionUsage` graphical node. * In all views: @@ -128,8 +126,7 @@ The affected connections were missing their source and target and were therefore ** Fix the export of the keywords carried by the ends of a connection, such as the `#original` and `#derive` of a `Requirement` derivation, which were missing from the exported text when the connection had been created from a diagram. Exporting such a connection and importing it back no longer loses which end is which. ** Fix the import of `TransitionUsage` using _start_ which now set the source to the `StateUsage` _start_ from the standard library instead of `ActionUsage` _start_ from the standard library. - -** Fix the export of a documentation, a comment or a textual representation whose text contains `*/`. +** Fix the export of a documentation, a comment or a textual representation whose text contains `\*/`. That sequence closes a comment in the SysML v2 textual notation, so the exported file could no longer be read. It is now exported as `* /`, and a warning reports it, since the exported text is then not exactly the one that was written. ** Preserve cross-document references when a SysML document is uploaded with a directory in its filename. @@ -149,12 +146,11 @@ image::release-notes-show-hide-section-group-palette.png[New Show/Hide section i ** In standard diagrams, the group palette now provides _Delete from diagram_ when multiple graphical nodes are selected. It removes all selected nodes from the diagram without deleting the corresponding model elements. - ** Selection dialog trees now apply the default _Explorer_ filters, hiding `Memberships`, root `Namespaces`, expose elements, and expression internals. It allows to focus on the elements that are relevant for the current model, while still allowing to select library elements. - ** Direct edit no longer parses or modifies expressions. Use the dedicated expression tools to create or modify expressions, while direct edit remains focused on labels and feature syntax. +** Improve the edge tool creating a `FlowUsage`, by creating a `ReferenceUsage` used for the redefinition of the `FlowEnd` only when it is needed. * In _Details_ view: From 919c1dea361da9eb9a009be3835d4ca4835c9ed5 Mon Sep 17 00:00:00 2001 From: Axel RICHARD Date: Mon, 31 Aug 2026 16:43:42 +0200 Subject: [PATCH 2/2] [fix] Fix canCreateDiagram method Avoid the display of AQL error related to existingViewUsagesCountForRepresentationCreation service Signed-off-by: Axel RICHARD --- .../syson/diagram/services/DiagramQueryViewService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/services/syson-diagram-services/src/main/java/org/eclipse/syson/diagram/services/DiagramQueryViewService.java b/backend/services/syson-diagram-services/src/main/java/org/eclipse/syson/diagram/services/DiagramQueryViewService.java index 37bbff07c..86e4f9f55 100644 --- a/backend/services/syson-diagram-services/src/main/java/org/eclipse/syson/diagram/services/DiagramQueryViewService.java +++ b/backend/services/syson-diagram-services/src/main/java/org/eclipse/syson/diagram/services/DiagramQueryViewService.java @@ -22,6 +22,7 @@ import org.eclipse.sirius.components.diagrams.Diagram; import org.eclipse.sirius.components.diagrams.Node; import org.eclipse.syson.sysml.Element; +import org.eclipse.syson.sysml.Namespace; import org.eclipse.syson.sysml.SysmlPackage; import org.eclipse.syson.sysml.Type; import org.eclipse.syson.sysml.ViewDefinition; @@ -59,7 +60,7 @@ public DiagramQueryViewService(IObjectSearchService objectSearchService, Diagram * @return {@code true} if the diagram can be created on the provided {@code element} */ public boolean canCreateDiagram(Element element) { - return true; + return element instanceof Namespace; } /** @@ -72,7 +73,7 @@ public boolean isView(Element element, String viewDefinition, List ances var types = viewUsage.getType(); if ((types == null || types.isEmpty()) && Objects.equals(StandardDiagramsConstants.GV_QN, viewDefinition)) { isView = true; - } else { + } else if (types != null) { var expectedViewDefinition = this.elementUtil.findByNameAndType(viewUsage, viewDefinition, ViewDefinition.class); Type type = types.get(0); isView = Objects.equals(type, expectedViewDefinition); @@ -96,7 +97,7 @@ public boolean isView(Element element, String viewDefinition, Node selectedNode, var types = viewUsage.getType(); if ((types == null || types.isEmpty()) && Objects.equals(StandardDiagramsConstants.GV_QN, viewDefinition)) { isView = true; - } else { + } else if (types != null) { var expectedViewDefinition = this.elementUtil.findByNameAndType(viewUsage, viewDefinition, ViewDefinition.class); Type type = types.get(0); isView = Objects.equals(type, expectedViewDefinition);