Book a Demo

Author Topic: Association in forward and reverse code engineerin  (Read 3292 times)

zilot

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Association in forward and reverse code engineerin
« on: October 19, 2007, 04:11:03 am »
Hello

My problem is next. I defined 2 of classes i.e ClassA and ClassB, then generated code for both of them, and that's OK. Both classes are under same package for example Package1.

Now I played to see if forward/reverse source code engineering works at all. When put inside ClassA new member for example
public ClassB object after saving source and resynchronisation in EA with source code, association link appears in class diagram of package Package1 from ClassA to ClassB as it is expected.

But then when I delete line public ClassB object from source code of ClassA and resynchronisation in EA with source code, association link is still present and can be removed only by deleting it from diagram  ???. So whats the trick.


zilot

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Association in forward and reverse code engine
« Reply #1 on: October 19, 2007, 04:12:02 am »
My program version of EA is 7.0.813


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Association in forward and reverse code engine
« Reply #2 on: October 21, 2007, 01:02:16 pm »
Have a look at Tools | Options | Source Code Engineering | Attributes/Operations.  There's an option there for removing associations that aren't found in code.