Book a Demo

Author Topic: Change source file for synchronize  (Read 4724 times)

mihan

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Change source file for synchronize
« on: June 13, 2002, 12:19:19 am »
Hi!

How to change the source file for class to synchronize with. E.g. I have changed the location of source and need to update my class diagram.

Regards, Misha

Ola Rylow

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Change source file for synchronize
« Reply #1 on: July 02, 2002, 02:15:15 am »
Hi Misha!

I am currently doing such updates in my model. What I do is to select the class to update in a diagram, right-click and select Generate Code... (or use Ctrl-G). In the Generate Code dialog use the Browse button to select your new path and close the dialog. Do not generate code. Finally just synchronize model (reverse engineer) by right-clicking your class again (or useCtrl-R).

Perhaps there is a better way, please let me know then.

Regards

Ola

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Change source file for synchronize
« Reply #2 on: July 02, 2002, 06:25:43 am »
Hi,

You can change the path ( int the latest builds of EA anyway) ... in the docked properties window - its the last entry in the General Properties section.

Check out the 'Local Directories' dialog and functions too - see Reference/Local Directories. This lets you specify macro replacements for parts of filenames on a per language basis ... eg.  c:\source\cpp\MyFile.h  could have c:\source\cpp replaced with %CPP% ... then you just change what %CPP% stands for and all related classesnow point to a different location.

Search the help for Local Directories and give it a try ... it can be very useful - especially if you have a lot of classes.

Cheers,
Geoff Sparks