Show Tag Values on the relationship / connector

248 views
Skip to first unread message

volenin

unread,
Nov 14, 2012, 3:12:00 PM11/14/12
to sparx-enterprise-archite...@googlegroups.com
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...
[original message]

M@localhost Simon M

unread,
Nov 14, 2012, 6:01:00 PM11/14/12
to sparx-enterprise-archite...@googlegroups.com
Write a shape script that specifies for one of the six labels to display the tagged value.
[original message]

volenin

unread,
Nov 15, 2012, 12:09:00 AM11/15/12
to sparx-enterprise-archite...@googlegroups.com
how complex would the script be? is it simply an 'assignment' of the variables (smth like 'connector.labelX = TagValue.y')
[original message]

KP

unread,
Nov 15, 2012, 12:36:00 AM11/15/12
to sparx-enterprise-archite...@googlegroups.com
As simple as this:

Code:
label middlebottomlabel
{
   print("#tag:tagvalue#");
}

[original message]
Reply all
Reply to author
Forward
0 new messages