Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - branfornpeter

Pages: [1]
Uml Process / Re: Changing file path of imported code
« on: January 03, 2018, 11:12:01 pm »
Ok, this works with latest version of EA, also. I found the menu item by searching for "local path" in the "Find Command" input field on top of the menu.

Uml Process / Re: Changing file path of imported code
« on: January 03, 2018, 09:16:09 pm »
There seems to be a feature called "local file paths", see this post on stack overflow>

Text (to persist solution here):

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 will test it now.

Uml Process / Changing file path of imported code
« on: January 03, 2018, 09:07:22 pm »
Hi guys,

after a long time of absence I am trying the latest version of EA (13.5.1352, Build 1352). I am importing code (C++ and python). This works OK if running on windows; running on Wine/Linux this is NOK, but I do not care so much.

My problem 1 is this: After importing code I realized the path to source code is absolute, including "D://...". This is a big issue for me, as I want to share my EAP file and possibly use it on other systems with other paths.
My problem 2 is this: If I start synchronizing the model with code, it does _not_ complain if it does not find a certain file. This is even worse: I did not initiallly realize the paths are absolute until I found out my code changes are not taken over into the model(s).

Note: changing the paths in the "settings" of a model item to a relative one does not work, the code is not found (but again no error message, but the code view will not open).

Is there any way to improve this for me or this "what you get"?

Thanks a lot!

Pages: [1]