Cannot hide specific stereotype, if multiple stereotypes are used

0 votes
asked Dec 22, 2020 in Question / help by kirchsth (7,760 points)

I use multiple stereotypes and one stereotype should be displayed as stereotype and the other should change the e.g. color and not displayed. This works if I don't combine both stereotypes. If I use both together, I can only hide both or nothing. E.g. exampleBaseComponent1 should be displayed with <<base>> but not with <<example>> (already represented via color)

Thank you and best regards
Helmut

@startuml
' https://forum.plantuml.net/4282/multiple-stereotypes-on-one-component

' hide stereotype
hide <<example>> stereotype
' hide <<example>><<base>> stereotype

skinparam component {
    BackgroundColor<<example>> Yellow
}

package "Something" {
    [origComponent]
    [baseComponent1]<<base>>
    [exampleComponent1]<<example>>
    [exampleBaseComponent1]<<example>><<base>>
}

origComponent <-U- baseComponent1
origComponent <-U- exampleComponent1
baseComponent1 <-U- exampleBaseComponent1
exampleComponent1 <-U- exampleBaseComponent1
@enduml

exampleBaseComponent with <<example>><<base>>

commented Mar 3, 2021 by chris (2,820 points)
This is now working
commented Mar 5, 2021 by kirchsth (7,760 points)
Hi @chris,

I tried it but still have the same result on the PlantUML server (see picture in my first question, both <<example>><<base>> are visible).
Did you promoted your source chaneges?

Thank you and best regards
Helmut
commented Mar 6, 2021 by chris (2,820 points)
edited Mar 6, 2021 by chris

Oh, I've just re-read your question. You're trying to combine stereotypes? Is that not just a third stereotype?

Closest I can get you is a label fudge:

Or, slightly nicer:

commented Nov 1, 2024 by kirchsth (7,760 points)

In the meantime it is fixed for classes



but for components it is still not working (if sterotypes are combined then both are hidden)



Maybe someone can merge the class fix into the component diagrams too.
Thank you
Helmut

 

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...