Book a Demo

Author Topic: Propagation of superclass modification to subclass  (Read 2687 times)

Eric Parent

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Propagation of superclass modification to subclass
« on: October 16, 2009, 01:34:02 am »
Hello,

I made a class diagram where a few classes were overriding methods inherited from a common super-class.

I modified the signature of a method in the superclass and would like to see this being propagated into all the subclasses which were overriding this method. Did not find out how to do so and it is not happening automatically.

Can you please help?

Thanks!

- Eric

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Propagation of superclass modification to subc
« Reply #1 on: October 16, 2009, 02:56:00 am »
Hi Eric,

Changes of the method signatures in base classes or interfaces aren't automatically propagated to the inheriting classes by EA. I think the best thing you can do, is to remove the changed methods in the inheriting classes and select them again from the Overrides & Implementations dialogue for the concerned elements (Element->Advanced->Overrides & Implementations).

HTH
Günther

Eric Parent

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Propagation of superclass modification to subc
« Reply #2 on: October 16, 2009, 07:29:06 am »
Hello,

   Thanks for replying.

   In fact, I actually removed the "Generalize" link (line with arrow) on each generalization class and removed also the inherited methods.

   When reconnecting the generalized class to its super-class, a dialog box appears with the methods that might be implemented in the sub-class.

   I did not know where to go in the menus but this method did the job. (until this auto-update feature gets in the "functionnalities" of later revisions  ;) ).

By the way, I use EA 7.1.832.

Regards,

- Eric

ObjectClassifier

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Propagation of superclass modification to subc
« Reply #3 on: October 20, 2009, 02:58:55 am »
I believe auto propagation should be added to EA.   :)