Book a Demo

Author Topic: Forcing diagram to update  (Read 2443 times)

Rene

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Forcing diagram to update
« on: April 22, 2005, 06:57:42 pm »
I created a class using the C# version of Microsoft Visual Studio. After creating the class I used EA to import (reverse engineer) the class and it did a wonderful job.

After that I went to the source code using Visual Studio and added a class INSIDE my previously created class. Once I finished doing that, I used EA to reverse engineer the class again and it added the other class in the diagram (nice).

Lastly, I went to the source code again and this time I DELETED the INNER class. Once I finished doing that, I used EA to reverse engineer the class again but this time nothing happened! The inner class remained in the diagram!!

Why was the deleted inner class not deleted from the EA diagram? Is there a way to tell EA to reflect this change no matter what?

Thanks.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Forcing diagram to update
« Reply #1 on: April 25, 2005, 03:48:16 pm »
Quote
Why was the deleted inner class not deleted from the EA diagram? Is there a way to tell EA to reflect this change no matter what?

The inner class wasn't deleted from the model (and therefore from the diagram) because the import process only looks at the classes that are there.

Said another way, EA didn't delete the class from the model because it didn't find it in the code saying that it didn't exist anymore.

No, there isn't any way to make EA delete classes.  (Same applies to forward synchronisation)

Simon
« Last Edit: April 25, 2005, 03:48:37 pm by simonm »