Author Topic: How do you customize the appearance of the stereotype labels?  (Read 2272 times)

mse

  • EA User
  • **
  • Posts: 303
  • Karma: +1/-0
    • View Profile
I have a block with multiple stereotypes applied. The stereotypes appear like this:

<<block>>,<<system of interest>>

I would like it to show like this:

<<block>>
<<system of interest>>

In other words, I want each stereotype on a new line. Is this configurable in EA, and if so, where can I configure it?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13288
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How do you customize the appearance of the stereotype labels?
« Reply #1 on: April 19, 2024, 08:59:43 pm »
No, you can't change that.
I don't even think you can do that with a shapescript to be honest.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How do you customize the appearance of the stereotype labels?
« Reply #2 on: April 19, 2024, 09:41:01 pm »
I found only one example in UML 2.5.1 on p. 267 where they denote «Clock, Creator». So different again. I could not find a definite spec for the notation.

q.

P.S. I opened a question on SO regarding this: https://stackoverflow.com/questions/78353428/notation-for-multiple-stereotypes
« Last Edit: April 19, 2024, 09:49:27 pm by qwerty »

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1311
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: How do you customize the appearance of the stereotype labels?
« Reply #3 on: April 20, 2024, 05:13:47 am »
Have you considered some different options for marking the block as a system of interest? For example
  • Use the shift+space bar combo to bookmark an element which puts a red triangle above the shape
  • Mark the element with a tagged value for system of interest and colour coding it using a diagram legend
Just seems to me that using stereotype to mark system of interest doesn't appear to be the right approach. IMHO
« Last Edit: April 20, 2024, 05:23:00 am by Sunshine »
Happy to help
:)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How do you customize the appearance of the stereotype labels?
« Reply #4 on: April 20, 2024, 06:22:12 am »
Since sunshine brought this in: consider a boundary named SOI (or a dedicated stereotyped SOI boundary). We did the latter in a past project.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: How do you customize the appearance of the stereotype labels?
« Reply #5 on: April 22, 2024, 10:47:12 am »
I have a block with multiple stereotypes applied. The stereotypes appear like this:

<<block>>,<<system of interest>>
When I tested this it looked like this on the diagram:
«block,implementationClass»

I found only one example in UML 2.5.1 on p. 267 where they denote «Clock, Creator». So different again. I could not find a definite spec for the notation.

q.

P.S. I opened a question on SO regarding this: https://stackoverflow.com/questions/78353428/notation-for-multiple-stereotypes

Which matches the only notation I could find on a diagram. It is represented in different ways across other parts of EA, but the UML specification doesn't describe how any of those should appear.

In the browser it only shows one stereotype with an indicator that there are more:
«block,...»

In the properties window it shows each stereotype with the profile name on a new line:
SysML 1.5:block
implementationClass

The relationships window Target Stereotype column matches the diagram but omits the «».

In other words, I want each stereotype on a new line. Is this configurable in EA, and if so, where can I configure it?
No, that option is not provided by EA.


PS.
Quote
Cool. I suppose the Sparxians won't care.

Maybe start with demonstrating that the claim that we have an incorrect notation is actually true. I suspect that you haven't even tried and just took OP's word for how it was rendered.
« Last Edit: April 22, 2024, 10:54:26 am by Eve »

mse

  • EA User
  • **
  • Posts: 303
  • Karma: +1/-0
    • View Profile
Re: How do you customize the appearance of the stereotype labels?
« Reply #6 on: April 22, 2024, 06:03:33 pm »
Have you considered some different options for marking the block as a system of interest? For example
  • Use the shift+space bar combo to bookmark an element which puts a red triangle above the shape
  • Mark the element with a tagged value for system of interest and colour coding it using a diagram legend
Just seems to me that using stereotype to mark system of interest doesn't appear to be the right approach. IMHO

The need for <<system of interest>> arose because I needed to create a profile for Objected Oriented Systems Engineering (OOSEM). There are other stereotypes that are needed such as <<software>>, <<hardware>>, <<logical>>, etc. The examples in a book showed the stereotypes on a separate line. I´m okay with comma separated if there is no other way.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How do you customize the appearance of the stereotype labels?
« Reply #7 on: April 22, 2024, 09:09:49 pm »
Maybe start with demonstrating that the claim that we have an incorrect notation is actually true. I suspect that you haven't even tried and just took OP's word for how it was rendered.
You're right. Call it Pawlow effect...

q.