Author Topic: Toolbox Page: Display stereotyped elements  (Read 2772 times)

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Toolbox Page: Display stereotyped elements
« on: January 03, 2013, 02:27:59 am »
How can I display stereotyped elements sharing the same stereotype name on a toolbox page?

I have the following profile diagram:


As one can see the stereotype <<#ifdef>> is declared multiple times for different metaclass instances.

Now, if I want to refer these stereotypes in a toolbox page profile I have to choose one of them, because it's not possible to create attributes with the same name (#ifdef) for a page:


Is there a feasible way showing these stereotyped elements on one toolbox page, without using different stereotype names?

Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Toolbox Page: Display stereotyped elements
« Reply #1 on: January 03, 2013, 04:24:35 am »
To me that smells fishy. Same stereotype name with different tags. I'd suspect EA to go crazy with that definition. Can't you use #ifdefA, #ifdefO and #ifdefC?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Toolbox Page: Display stereotyped elements
« Reply #2 on: January 03, 2013, 08:43:38 am »
1. Having three stereotype classes with the same name won't work. Only one will be saved to the profile. Instead, have a single stereotype class that extends all three metaclasses.

2. In the toolbox profile, name the attributes "Ext_C::#ifdef(UML::Attribute)", "Ext_C::#ifdef(UML::Operation)" and "Ext_C::#ifdef(UML::Class)".

Hopefully, having the stereotype name start with a '#' character won't cause you any problems...
The Sparx Team
[email protected]