Book a Demo

Author Topic: synchronising renamed classes  (Read 2323 times)

malmoth

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
  • On ne réveille pas un malmoth qui dort
    • View Profile
synchronising renamed classes
« on: April 11, 2005, 09:42:52 am »
I am working with EA and Eclipse. There is a usefull functionality in Eclispe called Refactoring. For intanse renaming a class A using refactor change every instance of A  in B in the whole code. When I try to reverse the code in EA. It generaly create a new class B in the model, but it does not delete the class A. Moreover, the diagrams are linked to the former class A, and not with the new class, so that if I manually delete the class A, all my diagrams are wrong.
Is there a way to handle that ?
Regards,

Malmoth

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: synchronising renamed classes
« Reply #1 on: April 11, 2005, 03:47:39 pm »
I'm not entirely sure what you mean by 'the diagrams are linked to the former class A'.  If I had a guess I'd say that class A appears on the diagrams and you want to change all of those links to B before deleting A.

Probably the best way to handle it would be to rename the class and change the filename before doing the reverse engineer.  That way it should synchronise with it.

Other than that the only thing I can think of would be to either write an addin that allows you to select the old and new classes and replaces anything that uses the old with the new.

Simon