Book a Demo

Author Topic: N.-ary Association in toolbox profiles  (Read 3598 times)

st1led

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • in a vapor trail
    • View Profile
N.-ary Association in toolbox profiles
« on: November 18, 2010, 11:38:31 pm »
Hello! I'm developing a toolbox profile for EA using the MSG technologies as described in the guide.

I've created a stereotype, say MyAssociation, which extends the metaclass "n-ary Association", and I've added in the stereotype Elements which extends the metaclass ToolboxProfile an attribute named

Code: [Select]
MyToolboxName::MyAssociation(UML::n-ary Association)
which has type "n-ary Association". The problem is that, once running my Add-In, I can't drag&drop the MyAssociation element from the toolbox (it doesn't show up on the diagram).

I guess it's some kind of a problem releated to the metaclass "n-ary Association" which doesn't seem to be in the UML metamodel (although it's depicted as a metaclass in the "Create New Metaclass" dialog), because my other stereotypes extending other metaclasses like Class, Association, UseCase and such work fine.

Any ideas?

Regards, Stefano
[size=9]tuesday you see
she had to be free
but somehow I got to
carry on...
[/size]

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: N.-ary Association in toolbox profiles
« Reply #1 on: November 19, 2010, 08:57:15 am »
Try this:
Code: [Select]
MyToolboxName::MyAssociation(UML::[highlight]AssociationElement[/highlight])For a full list of elements that can be included in toolbox profiles, see this page in the help file.
The Sparx Team
[email protected]

st1led

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • in a vapor trail
    • View Profile
Re: N.-ary Association in toolbox profiles
« Reply #2 on: November 19, 2010, 05:57:23 pm »
Thank you, using "AssociationElement" fixed my problem. I was getting confused since usually the metaclasses have the same name as the elements that can be included in the toolbox, but this type the metaclass had name "n-Ary Association" while the element had name "AssociationElement".


Regards, Stefano
[size=9]tuesday you see
she had to be free
but somehow I got to
carry on...
[/size]