Book a Demo

Author Topic: Profile stereotype connector labels  (Read 3537 times)

i4mdone

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Profile stereotype connector labels
« on: May 14, 2020, 01:54:36 am »
I like that with Quick Linker you can define _MeaningForwards and _MeaningBackwards to indicate to the modeler the role meaning between source and target for a connector.

The question: is there a way to set the connector source and target labels to reflect the meaning and not require the modeler to type in the labels each and every time?  (also to keep things very consistent for a specific connector type)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Profile stereotype connector labels
« Reply #1 on: May 14, 2020, 02:15:24 am »
I don't think so, unless you make an add-in I suppose.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Profile stereotype connector labels
« Reply #2 on: May 14, 2020, 08:37:56 am »
If you want labels to be explicitly set for all occurrences of a connector, shape script one or more labels to print that information.

i4mdone

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Profile stereotype connector labels
« Reply #3 on: May 14, 2020, 09:51:01 am »
That is a great idea.  I did the following and it works:

Code: [Select]
shape targettoplabel
{
print("uses");
}

shape sourcetoplabel
{
print("is used by");
}

Follow-on question:  this may be a brainless question, but is it possible to set the target.name and source.name instead through shape script? Or is this what Geert was referring to regarding an add-in?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Profile stereotype connector labels
« Reply #4 on: May 14, 2020, 11:23:18 am »
Yes, if you actually want to assign those values to the connector you will need to use an add-in.