Book a Demo

Author Topic: Display connectors'tags on a diagram ?  (Read 5714 times)

V.Wilmet

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Display connectors'tags on a diagram ?
« on: September 05, 2013, 08:46:59 pm »
Hi,

Is it possible to display connectors'tags on a diagram ?
It is for possible for the elements'tags through the diagram properties but I don'y see this possibility for the connector.
This would be interresting to show on diagram the overlay values set with matrix.

Thanks in advance for solution or suggestions if it is not possible.

V.


chrisHauert

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Display connectors'tags on a diagram ?
« Reply #1 on: September 05, 2013, 11:22:27 pm »
yes, but only with an own connector stereotype with an associated shape script (http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/displaying_element_properties.html) .
This can best be done by creating an own UML profile. Create a stereotype (e.g. "CRUD") that extends a metaclass (e.g. "Dependency")
Create an attribute (e.g. CRUD) that will convert to a tagged value when using the stereotyped connector from the profile. Create a second attribute on the stereotype named "_image" and click on the ... button on the right of the field "Initial Value". The shape editor will open an you can add a shape script to display a label (e.g."
shape MiddleTopLabel
{
      // display the CRUD Value
      print("#TAG:CRUD#");
      showlabel ("middletoplabel");
}
"

Save the diagram as a UML profile and load it from the resource view.
Now you will be able to use the stereotype from e.g. the toolbox of your profile containing your stereotype. Once you apply a value to the tag, it should then appear on the diagram. hth!-)
Cheers, Christoph

V.Wilmet

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Display connectors'tags on a diagram ?
« Reply #2 on: September 19, 2013, 08:30:52 pm »
Thanks for your help. But I have still a problem.

It is not possible to set the stereotype of a connector (or link type) from within the matrix relationship window. Indeed, the new stereotype does not appear in the "Link Type"list. So, one has to set it manually on all managed dependencies... Not very nice.
Is it possible with the profiles either to modify the metaclass (definition of a shape script) either to make connector stereotypes to appear in the list of "type link".

V.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Display connectors'tags on a diagram ?
« Reply #3 on: September 20, 2013, 08:42:19 am »
Create a metatype on your stereotype and it will be available in the matrix.