code import

Oliver Kellogg olivermkellogg at gmail.com
Sun Jan 30 07:11:31 GMT 2022


Hello Jessica,

Round trip code import and code generation is not really supported.
That would involve removing objects (classes, attributes etc) that
were removed in the imported code.
Last time I tried, what Umbrello does is before adding a new object it
tries to find it by name in the currently loaded objects.
If the name exists then the existing object will be modified instead
of creating a new object.
I am not sure how reliably it works - there may certainly be bugs in that area.

I believe that diagrams are not automatically updated.
It may be that some diagram updates occur perchance but the mechanism
has not been looked at systematically.

There is a long standing wish on this topic,
https://bugs.kde.org/show_bug.cgi?id=53382

HTH,

  Oliver


On Sun, Jan 30, 2022 at 5:06 AM Jessica Jones
<jess.jones.unitedkingdom at protonmail.com> wrote:
>
> Hi
>
> I have a question about the code import wizard.
> If I import a code file that has 1 class inside and I change something in this class and import the same file (with changed class) again in Umbrello, will Umbrello automatically update the class diagram or only the treeview (drag-and-drop of the class manually needed again)?
>
> Thx
>
> Sent with ProtonMail Secure Email.
>


More information about the umbrello mailing list