[umbrello] [Bug 371495] Lost class and interface names when open the project

Ralf Habacker bugzilla_noreply at kde.org
Fri Oct 28 10:29:54 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=371495

--- Comment #13 from Ralf Habacker <ralf.habacker at freenet.de> ---
I finally got a solution for this issue, which is divided into two parts: 
1. Because it can happens that diagrams are defined in the xmi file before the
related uml object, loading of uml diagrams is delayed until all uml objects
are loaded into the umbrello object model. (In principal it would be able to
implement this by using forward declaration support, but this looks much more
complex and may introduce additional bugs. Any hints in this direction is
welcome.)

2. The second issue is that the current implementation of the tree view saves
and loads entries to and from a separate xmi file <listview> section. On
loading the tree view reparents uml object if the hierachy differs from the uml
object tree which makes it very hard to fix broken xmi files by hand because it
is required to keep the listview entries in sync with the object model in the
file (this explains the possible workaround in comment 7).  Because the tree
view entries are always reconstructed from the uml model on xmi file loading
(except diagrams which may be fixed also) it looks better to remove this
reparenting. 

Thinking about this it may also be possible to remove this redundant storage,
but it need to be checked if also diagram widgets not having any uml object are
also reconstructed.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list