Enterprise Architect: how to synchronize with source code (source -> model) when its in a different absolute path in the disc?

前端 未结 2 2008
孤街浪徒
孤街浪徒 2020-12-28 10:01

I\'ve made a model in Enterprise Architect using the \'reverse engineering\' tool to import my Java classes into the EA model. Now I intend to keep this model up-to-date wit

相关标签:
2条回答
  • 2020-12-28 10:19

    I'm using version 9.0

    The solution here:

    • On the class diagram, choose "Generate code..." (F11)
    • Select the new class file location as Path
    • Save

    And the binding should be fixed.

    0 讨论(0)
  • 2020-12-28 10:26

    The version I use is 8.0.860

    The solution is to use a feature called "Locale Paths" in EA. You find it in the menue item Settings-->Locale Paths... It opens a dialog box that enables you to replace local paths in the model with an ID and vice versa. With this feature it is possible to replace a present path in the model with another one. It also gives you the possibility to use the model on different machines with different local paths.

    To find out to which local path a given class in the model was bound I grepped the binary file of the model. Then I replaced the path name with the buttons ApplyPath and ExpandPath. To me it seemed that the changes in the model concerning the path take effect not until closing EA and restarting it again.

    After that it was possible to see the source code of a class by right clicking the class and executing "View source code..." at the new location on the disk.

    0 讨论(0)
提交回复
热议问题