Bug 95247 - Class diagram is not updated when dropping a class inside other in the tree view
Summary: Class diagram is not updated when dropping a class inside other in the tree view
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Oliver Kellogg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-16 10:58 UTC by Marcos Mayorga
Modified: 2005-01-12 23:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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