[Uml-devel] [ uml-Bugs-629551 ] Inconsistent code generation

Jonathan Riddell jr at jriddell.org
Mon Oct 28 13:02:09 UTC 2002


> > Initial Comment:
> > Actual code generation (v 1.1) depends of the displayed class diagram.
> > With several class diagrams, each describing some set of associations, the
> > generated code is not consistent depending of the class diagram displayed;
> > it may contain or not generalizatoins, aggregations, and all these; only
> > the displayed ones.
>
> If I understand it right, the user whiches that association in other
> diagrams then the current are also used to generate code. I think this is a
> little bit complicated, because what should umbrello do if the diagrams are
> not consistent. So maybe in one diagram class A is a generation of B and in
> another one diagram it is the other way around. What diagram should be used?
> I think in the future Umbrello must check syntax, but now it is impossible.
> Oh yes, it should be possible to turn of syntax check as well!  So we must
> make sure, that the generated code is correct for the current selected
> diagram. Maybe we must note this in the code wizard.

Luis and others have said that the correct method should be to store the
associations in the internal model rather that in the actual
views/diagrams themselves.  I don't know if that's already in the feature
tracker but it probably should be.

Jonathan Riddell






More information about the umbrello-devel mailing list