Book a Demo

Author Topic: Show Tag Values on the relationship / connector  (Read 3925 times)

volenin

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Show Tag Values on the relationship / connector
« on: November 15, 2012, 06:12:03 am »
Hi. I wonder if there is a way to show tag values defined for the relationship (eg, association) directly on the diagram (together with stereotype or name). From what I've looked, the 'label visibility' doesn't provide such an option. If that makes a difference, I need this feature enabled on the relationship stereotype defined through my own UML Profile - may be there are some '_xyz' attributes I can set on the stereotype to make the Tag Value appear...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Show Tag Values on the relationship / connecto
« Reply #1 on: November 15, 2012, 09:01:43 am »
Write a shape script that specifies for one of the six labels to display the tagged value.

volenin

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Show Tag Values on the relationship / connecto
« Reply #2 on: November 15, 2012, 03:09:08 pm »
how complex would the script be? is it simply an 'assignment' of the variables (smth like 'connector.labelX = TagValue.y')

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Show Tag Values on the relationship / connecto
« Reply #3 on: November 15, 2012, 03:36:32 pm »
As simple as this:
Code: [Select]
label middlebottomlabel
{
    print("#tag:tagvalue#");
}
The Sparx Team
[email protected]