Author Topic: Use sterotype name when creating element  (Read 3676 times)

Mats Gejnevall

  • EA User
  • **
  • Posts: 98
  • Karma: +1/-0
    • View Profile
Use sterotype name when creating element
« on: March 30, 2017, 12:26:33 am »
I have created a MDG with a number of stereotyped elements, most of them are based on Class. When I drag and drop them from the toolbox, they are are given the name Class + a number. I assume there is a way of configuring the sterotype to use the name of it instead of the UML metaclass. But I have not been able to find it.

Can someone give me a hit (or a link to where this is described)?

Thanks
Mats

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Use sterotype name when creating element
« Reply #1 on: March 30, 2017, 12:03:59 pm »
Yes you can. Give the stereotype a _metatype attribute with initial value set to the name of the stereotype.
The Sparx Team
[email protected]

Mats Gejnevall

  • EA User
  • **
  • Posts: 98
  • Karma: +1/-0
    • View Profile
Re: Use sterotype name when creating element
« Reply #2 on: April 13, 2017, 09:13:45 pm »
This helped with another issues as well! Now we can find all our stereotyped elements in the Relationship matrix as well. And when using _metatype on our relations/connections they also show up in the Relationship matrix!!!  :D :D :D :D :D