Book a Demo

Author Topic: Show target on realization links  (Read 2460 times)

franck

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Show target on realization links
« on: September 17, 2013, 11:31:31 pm »
Hi,
I have troubles showing up the target role on a realization link. When I do a directed association, the target role is displayed on the diagram, but not on a realization link. Is this a bug or is there an option somewhere for that?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Show target on realization links
« Reply #1 on: September 18, 2013, 09:07:33 am »
In UML, the end of an association represents a property, so displaying the name of the property is part of the association notation. That isn't true for realization.

What you can do, is give the realization a stereotype to extend it with a shape script. Something like this:

Code: [Select]
label targettoplabel
{
      print("#target.name#");
}
The Sparx Team
[email protected]