Summary: | Copy and paste into new instance loses class hierarchy | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Ralf Habacker <ralf.habacker> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | kde |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/umbrello/a5e3fc4612d323a7584d6509d7372be7639a669d | Version Fixed In: | |
Attachments: | XMI reproducing the described issue |
Description
Ralf Habacker
2013-11-21 09:54:05 UTC
Created attachment 84145 [details]
XMI reproducing the described issue
The Engine.xmi file is too large to upload, attached XMI does the same job in reproducing the issue. Paste diagram 1 to other instance, then diagram 2.
Currently, when pasting items twice, the second time they are ignored (the previous instance of the UMLObject is used), so that's all fine. Showing a dialog might be a nice feature, but I don't think there's a common use case.
The actual problem described above is not pasting the same object twice, but pasting completely different objects with the same name. This is caused by not correctly pasting the hierarchy of the objects. See XMI. I think that should be solved in this ticket.
To elaborate, the Singleton class in Engine.xmi is where the problem occurs when pasting Filesystem and Gooey. Those Singleton classes are completely different objects, so the dialog would not make sense in that situation. Bug for improved rename dialog: bug 328949. Git commit a5e3fc4612d323a7584d6509d7372be7639a669d by Joris Steyn. Committed on 18/12/2013 at 07:34. Pushed by jorissteyn into branch 'master'. Include object packages in clip M +41 -31 umbrello/clipboard/umlclipboard.cpp M +2 -0 umbrello/clipboard/umlclipboard.h M +28 -27 umbrello/clipboard/umldragdata.cpp M +10 -4 umbrello/object_factory.cpp M +5 -0 umbrello/umllistview.cpp M +0 -15 umbrello/umlobject.cpp M +0 -2 umbrello/umlobject.h http://commits.kde.org/umbrello/a5e3fc4612d323a7584d6509d7372be7639a669d |