Bug 54573 - load associations correctly linepath
Summary: load associations correctly linepath
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.1.1
Platform: Compiled Sources Linux
: LO normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-12 22:24 UTC by Sebastian Stein
Modified: 2003-12-09 20:45 UTC (History)
0 users

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


Attachments
reg.xmi (21.85 KB, application/x-uml)
2003-11-30 13:41 UTC, Eugine V. Kosenko
Details
before.png (149.04 KB, image/png)
2003-11-30 13:41 UTC, Eugine V. Kosenko
Details
after.png (153.68 KB, image/png)
2003-11-30 13:41 UTC, Eugine V. Kosenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Stein 2003-02-12 22:24:25 UTC
Version:           1.1.1 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 2.95.3 
OS:          Linux

Sebastian Stein wrote:
> I think you forgot to mention another thing. Line position isn't saved and
> you have to reorder them after each load. I allready tried to improve the
> code, but I think it is impossible. Because at the moment the line decides

Carsten Pfeiffer wrote:

No, actually, it is saved (look at the XMI). I investigated this a while ago
and IIRC the problem was:

- - an AssociationWidgetData object is created
- - it creates a LinePath object
- - loadFromXMI() is called on it, which also calls loadFromXMI on the LinePath
object
- - an AssociationWidget object is created with the AWD object as parameter
- - the AW sets itself as as association object in the AWD's LinePath object,
which makes the LinePath object throw away all its state loaded via
loadFromXMI(), so the defaults are calculated.


Possible solutions:
- - add another parameter to setAssociation to tell the LinePath to or not to
throw away its state.
- - call loadFromXMI() after the AssociationWidget object is created and
setAssociation() is called (not sure if this is feasible).
Comment 1 Oliver Kellogg 2003-11-29 18:10:21 UTC
I'm not sure I understand this.
Perhaps you could create an attachment that shows the problem?
Comment 2 Sebastian Stein 2003-11-30 11:33:51 UTC
Subject: Re: [Uml-devel]  load associations correctly linepath

Oliver Kellogg <okellogg@users.sourceforge.net> [031130 09:50]:
> I'm not sure I understand this.
> Perhaps you could create an attachment that shows the problem?

Create a class diagram with 2 classes and connect them with 2 associations.
Now save the file. If you load the file it could happen, that the
associations cross, because Umbrello reorders the association connection
points automatically on load. This has to be disabled, because the correct
connection point is saved in the xmi file.

Steinchen
Comment 3 Eugine V. Kosenko 2003-11-30 13:41:46 UTC
Subject: Re:  load associations correctly linepath

Comment 4 Oliver Kellogg 2003-12-09 20:45:15 UTC
*** Bug has been marked as fixed ***.