Skip to content

Commit

Permalink
[1077] Fix explorer in case of non-sysml domain
Browse files Browse the repository at this point in the history
Fix behavior of hasChildren management of syson explorer when handling model elements from non-sysml domains. It now falls back to SiriusWeb implementation when necessary.

Bug: #1077
Signed-off-by: Didier Vojtisek <[email protected]>
  • Loading branch information
dvojtise committed Mar 5, 2025
1 parent 3a0e527 commit 2b1bbab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

=== Bug fixes

- https://github.com/eclipse-syson/syson/issues/1077[#1077] [explorer] Fix navigation in case of project containing both sysml and non-sysml model elements

=== Improvements

- https://github.com/eclipse-syson/syson/issues/1061[#1061] [general-view] Add ellipsis on `Packages` label, to provide visual feedback on name overflow.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public boolean hasChildren(Object self, IEditingContext editingContext, List<Str
List<Object> contents = this.filterService.applyFilters(this.contentService.getContents(self), activeFilterIds);
hasChildren = !contents.isEmpty() && contents.stream().anyMatch(e -> !(e instanceof EAnnotation))
|| this.hasRepresentation(element, editingContext);
} else {
explorerServices.hasChildren(self, editingContext);
}
return hasChildren;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

== Bug fixes

- In `Explorer View`, the fold/unfold arrow is now also available for non-sysml model elements.

== New features

== Improvements
Expand Down

0 comments on commit 2b1bbab

Please sign in to comment.