Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: g.makulik 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:
(http://imageshack.us/scaled/medium/197/multiplestereotypeprofi.png
)
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:
(http://imageshack.us/scaled/medium/836/multiplestereotypetoolb.png
)
Is there a feasible way showing these stereotyped elements on one toolbox page, without using different stereotype names?
-
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.
-
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...