[Uml-devel] Improved line-object handling in Umbrello
Carsten Pfeiffer
carpdjih at mailbox.tu-berlin.de
Wed Feb 12 08:46:04 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Wednesday 12 February 2003 13:19, 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
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).
I ran out of time, so I couldn't finish this :(
Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----
iQEVAwUBPkp566WgYMJuwmZtAQE/IAgAhExaicsJ/aJWOYKQ8TPh+p+mvcQHwWkD
hhuH6PSMTrXydeIiIyDfaLtmjBzDn6L8VL5Y8vqwyMfYehgHtXrOvMJEWdYijaFN
ZtMFY8ipERrerbw5kuppp9Rfmggk0SYbkYBbrz4EmubZcyzygk0+wrlGfvAGJtEQ
RS0mSS4X6bk0aBYRHNnLl8hoxg/CZxIV5mMrdsasTlQloOIK2QwauVM770g4tS8h
4g4OcMO67s8VecjLiu/4wvySNL2nSuRu4WzWWCR3y/IHRj/iSpTCPPXE486f3L1H
+lhLktGCO2ECmDy7+7CfNhazix9TuaFFbB7FZrPFu5/obXEnhq2s8Q==
=/x6m
-----END PGP SIGNATURE-----
More information about the umbrello-devel
mailing list