Book a Demo

Author Topic: Apply type to change stereotypes  (Read 4165 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Apply type to change stereotypes
« on: September 06, 2016, 05:41:44 pm »
Hi,

I have an MDG with SysML block stereotypes. When I create a "typeA" stereotyped block, I use to copy & paste as a new element. I want to easily apply a different stereotype on this new block e.g. change "typeA" to "typeB". As regards I used the toolbox & option Apply Block Type.
Unfortunately this block gets an additional stereotype so ends up with typeA & typeB.
I'm aware that this feature is intended to easily change an element type e.g. from a class to an interface, however I'd have expected stereotypes to be managed  in a different way.

Is there a workaround to easily change stereotypes?

thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Apply type to change stereotypes
« Reply #1 on: September 06, 2016, 06:10:23 pm »
Hi,

I have an MDG with SysML block stereotypes. When I create a "typeA" stereotyped block, I use to copy & paste as a new element. I want to easily apply a different stereotype on this new block e.g. change "typeA" to "typeB". As regards I used the toolbox & option Apply Block Type.
Unfortunately this block gets an additional stereotype so ends up with typeA & typeB.
I'm aware that this feature is intended to easily change an element type e.g. from a class to an interface, however I'd have expected stereotypes to be managed  in a different way.

Is there a workaround to easily change stereotypes?

thanks
Hi Guillaume,

Use one of the property windows or dialogs and simply replace the text - that should change the stereotype to the new value (and perform some behind the scenes behaviour as required).

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Apply type to change stereotypes
« Reply #2 on: September 06, 2016, 06:39:51 pm »
Remove the exiting tags and then drag the new stereotype from the toolbox over the element (on the diagram). That will apply the new stereotype. Note that the metatypes must be the same,

q.