Book a Demo

Author Topic: Using inherited methods in a Sequence Diagram?  (Read 3760 times)

charless

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Using inherited methods in a Sequence Diagram?
« on: January 08, 2007, 02:16:18 am »
Hi there,

I am a new user to EA and would be very grateful to anyone who can help me with the following problem -

I have an abstract superclass with a non-abstract operation.

I have a subclass that inherits from that superclass. When I set feature visibility in the Class Diagram my subclass shows the inherited operation as expected.

However, when I create an instance of the subclass in a Sequence Diagram the operations list for that instance is empty and doesn't show the inherited operation.

Any ideas what I'm doing wrong?

Thanks
« Last Edit: January 08, 2007, 02:40:41 am by charless »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Using inherited methods in a Sequence Diagram?
« Reply #1 on: January 08, 2007, 03:05:06 am »
What version of EA are you using?

What is your language settings for both classes?

It seems to work OK for me on build 802.

In the message dropdown, I can see the operations of the parent classes.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

charless

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Using inherited methods in a Sequence Diagram?
« Reply #2 on: January 09, 2007, 01:50:30 am »
Hi Paolo,

I'm using Build 801.

I have since saved all the diagrams, closed and re-opened EA...

...and now lo and behold it works!

Maybe the two diagrams weren't synced somehow? Anyway, now the operations appear in my dropdown too.

If I can recreate the error in the future I'll raise it as a bug but maybe it was human error (mine!).

Thanks for your reply