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
{{ message }}
Repository navigation
Support packages in class diagrams for structuring larger models #646
Larger class diagrams become hard to read and manage because the editor offers no way to group classes into packages.
Describe the solution you'd like
Most of the pieces already exist but aren't connected:
B-UML already has Package (besser/BUML/metamodel/structural/structural.py).
Editor: the class diagram has a UMLClassPackage element, but its palette entry is commented out (packages/editor/src/main/packages/uml-class-diagram/class-preview.ts).
Converters: the JSON ↔ B-UML class diagram converters ignore packages, so packages wouldn't survive a save, an export or code generation.
Proposed scope:
Enable the package element in the class diagram palette, so classes can be placed inside it.
Convert packages in both directions between JSON and B-UML.
Let the modeling assistant create packages and assign classes to them.
Optionally, map packages to modules or namespaces in the generators where that's meaningful.
Describe alternatives you've considered
Splitting a domain across several class diagrams in one project. That loses the associations between classes in different groups, which packages keep.
Activity