file [Solved] Create stereotype from two meta-models

5 years 1 month ago - 5 years 1 month ago #3435 by ua138
Is it possible to create a stereotype from two different meta-classes?

<Stereotype name="MyStereotype" metaclass="Operation" metaclass="Class" is-hidden="false" label="%MyStereotype.label" uid="ab289f43-9605-4853-a2f9-03e665e2754a">
                <Icon path="%MyStereotype.image"/>
                <Image path="%MyStereotype.image"/>
                <TagTypes/>
            </Stereotype>

The code from above gives me the following error:
Attribute "metaclass" was already specified for element "Stereotype"

Please Log in or Create an account to join the conversation.

5 years 1 month ago #3436 by pan
You could have one stereotype for each meta-class. For example:
<Stereotype name="MyStereotype" metaclass="Operation" is-hidden="false" label="%MyStereotype.label" uid="ab289f43-9605-4853-a2f9-03e665e2754a">
                <Icon path="%MyStereotype.image"/>
                <Image path="%MyStereotype.image"/>
                <TagTypes/>
            </Stereotype>
<Stereotype name="MyStereotype" metaclass="Class" is-hidden="false" label="%MyStereotype.label" uid="cf485l52-4521-1212-a1k8-12b558e5489a">
                <Icon path="%MyStereotype.image"/>
                <Image path="%MyStereotype.image"/>
                <TagTypes/>
            </Stereotype>
Hope this helps.

Please Log in or Create an account to join the conversation.

5 years 1 month ago #3437 by ua138
Thank you very much for your quick response!

Please Log in or Create an account to join the conversation.

Moderators: tmachmaab
Time to create page: 0.057 seconds
^ Back to Top