Book a Demo

Author Topic: How to update attribute on Realizations?  (Read 3054 times)

tone

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
How to update attribute on Realizations?
« on: September 08, 2010, 10:52:36 am »
I have an interface that has a few attributes.  I have created another class that implements (realizes) that interface.  I select all the attributes and they all show up in the class implementing.  But when I update an attribute in the interface the implementation class does not get the update - how do i make this happen?  With one class it's not a big deal but I have a project with 40+ classes..  thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to update attribute on Realizations?
« Reply #1 on: September 08, 2010, 03:11:36 pm »
You can't. (at least not automatically).
There are pro's and con's

See http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1280053925 and http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1256050121/ for discussions about this subject.

Geert

tone

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to update attribute on Realizations?
« Reply #2 on: September 08, 2010, 11:24:11 pm »
well that's no good, it should at least be an option somewhere to set.  Yes, I am still in the whiteboard phase, but now I have to go remove all the realizations and re-add them to get the change i made.  I hope I don't need to make any more changes to the interface/base class.  

thanks for the links.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to update attribute on Realizations?
« Reply #3 on: September 09, 2010, 08:46:14 am »
Quote
now I have to go remove all the realizations and re-add them to get the change i made.
Not necessary. Select the class and Ctrl+Shift+O (for Override).
The Sparx Team
[email protected]

tone

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to update attribute on Realizations?
« Reply #4 on: September 10, 2010, 12:16:10 pm »
nice!  that helps!  although it still only allows me to do that with one class at a time, but none-the-less it's fewer clicks - thanks!