Re: code import
Oliver Kellogg <[email protected]> Sun, 30 Jan 2022 08:11:31 +0100
| Newsgroups | gmane.linux.umbrello.user |
|---|---|
| Message-ID | <CANZbxGmOtjbQO_Lr8j97Hz5fJ=1Sc6TPN1nRJ+LJ6ts1gT9fWQ@mail.gmail.com> |
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 a= rea. 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=3D53382 HTH, Oliver On Sun, Jan 30, 2022 at 5:06 AM Jessica Jones <[email protected]> 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. >