Book a Demo

Author Topic: Code Engineering: Reflect changes by moved classes  (Read 3163 times)

Alinen

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Code Engineering: Reflect changes by moved classes
« on: June 10, 2013, 06:36:52 pm »
Hi,

If I have imported some classes or packages into Enterprise Architect and afterwards move these classes to other packages or directories, the connection between the code and the model is lost.

Is there a ways to tell Enterprise Architect that the location of the classes has changed? I do not want to reimport them again, since those classes are used in some models. I would have to rebuild these models that way.
« Last Edit: June 10, 2013, 06:37:21 pm by ea0413 »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Code Engineering: Reflect changes by moved cla
« Reply #1 on: June 11, 2013, 05:45:33 pm »
Hi,

1. Drag the classes into the new package.
2. Change the file name in class properties according to the new package.
3. Synchronize with Code (F7).

The association to the classes in a directory is done by:
  • Class name
  • Filename

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Alinen

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Code Engineering: Reflect changes by moved cla
« Reply #2 on: June 14, 2013, 09:18:28 pm »
Hi Helmut,

Quote
Hi,

1. Drag the classes into the new package.
2. Change the file name in class properties according to the new package.
3. Synchronize with Code (F7).

The association to the classes in a directory is done by:
  • Class name
  • Filename

Thanks, but can you be a bit more specific? I do not find the file name in class properties. Where should this information be?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Code Engineering: Reflect changes by moved cla
« Reply #3 on: June 15, 2013, 05:42:23 am »
Open the Element/Properties window. EA is not really orthogonal...

q.