Bug 95247

Summary: Class diagram is not updated when dropping a class inside other in the tree view
Product: [Applications] umbrello Reporter: Marcos Mayorga <drmay_en>
Component: generalAssignee: Oliver Kellogg <okellogg>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marcos Mayorga 2004-12-16 10:58:07 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Debian testing/unstable Packages

If in a class diagram is shown two classes without any relationship, so in the tree view they are at the same deep level, when you drag one of them and drop it in the other, the former class is now contained under the second class, BUT a Containment association should be shown in the diagram, and it isn't.

note: If you remove the class from the diagram and add it again, the result is Ok, the association is shown.
Comment 1 Jonathan Riddell 2004-12-19 19:25:29 UTC
Since not all diagrams show all associations it's impossible to automatically add all associations because they may not be wanted.
Comment 2 Marcos Mayorga 2004-12-20 15:39:08 UTC
I think is more consistent if the relationship is shown by default, and then the user can remove it if he wants. This must have the same argument that the one taken when decided that a class dropped to a diagram shows its relationships with the others.
Comment 3 Oliver Kellogg 2005-01-12 23:12:24 UTC
CVS commit by okellogg: 

UMLView::updateContainment(): New.
 Synchronizes containment association with changed model object parentage.
BUG:95247


  M +2 -2      ChangeLog   1.59
  M +3 -2      umbrello/umllistview.cpp   1.144
  M +55 -2     umbrello/umlview.cpp   1.202
  M +10 -0     umbrello/umlview.h   1.68