Bug 447598 - Packages containing other objects are not displayed in a useful manner in a class diagram
Summary: Packages containing other objects are not displayed in a useful manner in a c...
Status: CONFIRMED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-28 11:58 UTC by Robert Hairgrove
Modified: 2021-12-29 22:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Contains packages_umbrello.png and packages_correct.png (35.42 KB, application/zip)
2021-12-28 11:58 UTC, Robert Hairgrove
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Hairgrove 2021-12-28 11:58:47 UTC
Created attachment 144906 [details]
Contains packages_umbrello.png and packages_correct.png

SUMMARY
Packages containing other objects are not displayed in a useful manner. First of all, the package name should be displayed in the tab if it contains other packages, classes, or other objects. Second, the contained objects do not move with their parent package, but are shown exclusively with the older "⊕---" notation.

STEPS TO REPRODUCE
1. In a class diagram, add a new package, e.g. "Qt" (see attached images); 
2. Add a few classes and/or other packages to the diagram. They can be arranged so as to "look like" they are enclosed by the Qt package, but they are not shown in the model tree view as children until they are moved. Move them so that they appear as subobjects of the "Qt" package.
3. Move the "Qt" package away, and the subpackages do not move, but have an ownership association line drawn to them.

OBSERVED RESULT
See attached screenshot "packages_umbrello.png"

EXPECTED RESULT
See attached screenshot "packages_correct.png" (drawn with Modelio)

SOFTWARE/OS VERSIONS
Linux: Ubuntu 18.04.06
KDE Plasma Version: ???
KDE Frameworks Version: 5 
Qt Version: 5.12.9

ADDITIONAL INFORMATION
Umbrello compiled from Git, latest version as of yesterday (27 December 2021)
Comment 1 Oliver Kellogg 2021-12-29 22:45:05 UTC
(In reply to Robert Hairgrove from comment #0)
> [...]
> STEPS TO REPRODUCE
> 1. In a class diagram, add a new package, e.g. "Qt" (see attached images); 
> 2. Add a few classes and/or other packages to the diagram. They can be
> arranged so as to "look like" they are enclosed by the Qt package, but they
> are not shown in the model tree view as children until they are moved.

Granted, creating nested packages from within the diagram is much harder than from within the tree view.

Using the fix for bug 447661, there is a trick for how the moving as a group can be done:
Once the packages are created from the tree view and are dragged to the diagram with the desired nesting/containment, in order to move them as a group pull a rectangle around them using the arrow tool. On moving, they will maintain their relative positions.