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

冷暖自知 提交于 2019-11-30 02:22:22

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!