[fix] Include nested packages in SysML textual export#2141
[fix] Include nested packages in SysML textual export#2141vik378 wants to merge 1 commit intoeclipse-syson:mainfrom
Conversation
Add missing org.eclipse.syson.sysml.Package import in SysMLRelationPredicates. Without this import, Package.class resolved to java.lang.Package instead of org.eclipse.syson.sysml.Package, causing nested packages to be omitted from the textual export output.
|
Hello @vik378, thank you for this contribution! |
|
Furthermore, if you are not have an Eclipse account and didn't signed the Eclipse ECA I won't be able to merge this PR. |
Summary
Fixes nested packages being omitted from the SysML textual export output.
Root Cause
In
SysMLRelationPredicates.java, the import fororg.eclipse.syson.sysml.Packagewas missing. This causedPackage.classto resolve tojava.lang.Packageinstead of the SysML Package type, resulting in nested packages not being recognized during the textual export traversal.Fix
Added the missing import:
Testing