Book a Demo

Author Topic: Abstract operation modification not propagated  (Read 4305 times)

Ignacio G. T.

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Abstract operation modification not propagated
« on: November 20, 2012, 02:22:13 am »
I have an abstract class Parent with and abstract operation doSomething (parameter :ThisType).

I also have a concrete class Child that specializes Parent. When I draw the generalization relationship, EA lets me specify the operations from Parent that Child will implement. I check doSomething and Child now has a doSomething operation with the same signature as Parent. That's good.

Now, if I modify doSomething in Parent (for instance, I change the type of parameter to ThatType), the change does not propagate to Child.

Is there a way to perform this propagation, or do I have to manually enter the change in each child?

I could break the generalization relationship and make it again, but I wanted to avoid it, if possible.

Thanks.
« Last Edit: November 20, 2012, 02:44:40 am by igtorque »

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Abstract operation modification not propagated
« Reply #1 on: November 20, 2012, 02:40:59 am »
AFAIK there's no way such changes are propagated automatically to all inherited classes.

You can though use the 'Implementations and Overrides' dialog on child class, that should offer only the changed methods from the parent class then.

HTH
Günther

Ignacio G. T.

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Abstract operation modification not propagated
« Reply #2 on: November 20, 2012, 02:52:58 am »
Thanks, Makulik, but I cannot see that dialog. Where is it?

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Abstract operation modification not propagated
« Reply #3 on: November 20, 2012, 03:38:46 am »
It's accessible only from main menu. Select the (child class) element and choose 'Element->Adavanced->Overrides & Implementations...' or CTRL-Shift-O as keyboard shortcut.

Regards,
Günther

Ignacio G. T.

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Abstract operation modification not propagated
« Reply #4 on: November 20, 2012, 03:58:57 am »
OK, thanks.