Skip to content

Support packages in class diagrams for structuring larger models #646

Open

Description

@ArmenSl

Is your feature request related to a problem?

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:

  1. Enable the package element in the class diagram palette, so classes can be placed inside it.
  2. Convert packages in both directions between JSON and B-UML.
  3. Let the modeling assistant create packages and assign classes to them.
  4. 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

  1. added
    enhancementNew feature or request
    agentic_demoRaised during the agentic interface demo sessions
    modelingModeling languages and diagram types
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-UMLagentic_demoRaised during the agentic interface demo sessionsenhancementNew feature or requestmodelingModeling languages and diagram typesweb modeling editorLinked to the Web Modeling Editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions