Book a Demo

Author Topic: Synchronizing from code to model after refactoring  (Read 2279 times)

Diego77

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Synchronizing from code to model after refactoring
« on: March 28, 2011, 11:53:10 pm »
Hi there!

I'm currently using EA's reverse engineering to generate classes in EA. From there I can build specific class and sequence diagrams to represent what I need.
The trouble is we're heavily refactoring the application and we MOVE classes from one package to another.

If I simply synchronize, EA does not detect the classes' move: it still sees the classes in the "old" package.
If I do an "update from code" without deleting the "old" classes I will get the classes in two locations (two packages). However the diagrams will still point to the old classes. If I delete those, my diagrams are destroyed.
Ideally I would try to manually "rewire" the diagram's classes from their old version (in the old package) to their new version in the new package, but I have not found a way to do that in EA.

So, does anyone know if there is a way to refactor your code and reverse-engineer that in EA without losing my diagrams?

Thanks a bunch!