Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ It has long been unused by Sirius Web itself (since the transition to MUI).
- https://github.com/eclipse-syson/syson/issues/2194[#2194] [diagrams] Properly report feedback messages to user when using _ISysMLMoveElementService_.
- https://github.com/eclipse-syson/syson/issues/2306[#2306] [diagrams] Fixed an error when trying to rename a constraint displayed as a list item through direct edit.
- https://github.com/eclipse-syson/syson/issues/2318[#2318] [diagrams] Direct edit on a constraint label now ignores the expression part (`{ ... }`) if present in the new text.
- https://github.com/eclipse-syson/syson/issues/2329[#2329] [import] Fix invalid relation created when importing a requirement inside a requirement.

=== Improvements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private Runnable addInParent(Element parent, Element child) {
if (child instanceof Import imp) {
parent.getOwnedRelationship().add(imp);
undo = () -> parent.getOwnedRelationship().remove(imp);
} else if (child instanceof Expression expr) {
} else if (child instanceof Expression expr && !(child instanceof Usage)) {
var compatibleOwnerships = this.metamodelQueryElementService.getCompatibleExpressionOwnerships(parent);
if (!compatibleOwnerships.isEmpty()) {
var selectedOwnership = compatibleOwnerships.get(0);
Expand Down
Loading