Summary: | Copy and paste of interface in component diagram does not update the displayed name | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Ralf Habacker <ralf.habacker> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.27.1 (KDE Applications 18.12.1) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://commits.kde.org/umbrello/48be64aa24851878e466de7a858887c1cde5aa61 | Version Fixed In: | 2.27.2 (KDE Applications 18.12.2) |
Description
Ralf Habacker
2019-02-02 10:52:39 UTC
The copy and paste implementation uses the regular functions to load and save xmi files. When copying, the selected UML objects and widgets are written to a memory xml stream and inserted into new UML objects and widgets. The original name of the UML object is also reused. Since the inserted UML object gets a new name, there is code somewhere to perform this adaptation, but it is not applied to the inserted widgets and leads to the problem described. Git commit 48be64aa24851878e466de7a858887c1cde5aa61 by Ralf Habacker. Committed on 02/02/2019 at 13:52. Pushed by habacker into branch 'Applications/18.12'. Fix 'Copy and paste of interface in component diagram does not update the displayed name' We need to override WidgetBase::setUMLObject() to propagate the new object name to the floating text widget holding the interface name. FIXED-IN:2.27.2 (KDE Applications 18.12.2) M +12 -0 umbrello/umlwidgets/classifierwidget.cpp M +1 -0 umbrello/umlwidgets/classifierwidget.h https://commits.kde.org/umbrello/48be64aa24851878e466de7a858887c1cde5aa61 PLEASE GET ME OFF THE DISTRIBUTION!!! Am 02.02.19 um 14:56 schrieb Ralf Habacker: > https://bugs.kde.org/show_bug.cgi?id=403853 > > Ralf Habacker <ralf.habacker@freenet.de> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Version Fixed In| |2.27.2 (KDE Applications > | |18.12.2) > Resolution|--- |FIXED > Latest Commit| |https://commits.kde.org/umb > | |rello/48be64aa24851878e466d > | |e7a858887c1cde5aa61 > Status|REPORTED |RESOLVED > > --- Comment #2 from Ralf Habacker <ralf.habacker@freenet.de> --- > Git commit 48be64aa24851878e466de7a858887c1cde5aa61 by Ralf Habacker. > Committed on 02/02/2019 at 13:52. > Pushed by habacker into branch 'Applications/18.12'. > > Fix 'Copy and paste of interface in component diagram does not update the > displayed name' > > We need to override WidgetBase::setUMLObject() to propagate the new object > name to the floating text widget holding the interface name. > FIXED-IN:2.27.2 (KDE Applications 18.12.2) > > M +12 -0 umbrello/umlwidgets/classifierwidget.cpp > M +1 -0 umbrello/umlwidgets/classifierwidget.h > > https://commits.kde.org/umbrello/48be64aa24851878e466de7a858887c1cde5aa61 > PLEASE GET ME OFF THE DISTRIBUTION!!! Am 02.02.19 um 13:22 schrieb Ralf Habacker: > https://bugs.kde.org/show_bug.cgi?id=403853 > > --- Comment #1 from Ralf Habacker <ralf.habacker@freenet.de> --- > The copy and paste implementation uses the regular functions to load and save > xmi files. > When copying, the selected UML objects and widgets are written to a memory xml > stream and inserted into new UML objects and widgets. The original name of the > UML object is also reused. Since the inserted UML object gets a new name, there > is code somewhere to perform this adaptation, but it is not applied to the > inserted widgets and leads to the problem described. > |