Book a Demo

Author Topic: Stereotype does not show when dragged from custom toolbox into a diagram.  (Read 3952 times)

sidietz

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hi,

I am trying to add a custom profile and a corresponding toolbox.

I have a profile with a class metaclass and an ADO stereotype extending it.
I have a corresponding Toolpage Metaclass and Stereotype(s), as well.

However, after I exported the MDG tech and imported it, when I drag the ADO element from my custom toolbox into a diagram (with loaded MDG tech) it does not show up. Neither in the project browser nor the diagram. (But I neither get a warning nor an error).

For test reasons I also added an ADO2 attribute in my Toolbox Stereotype with a non existing package. Trying to drag this element into the diagram throws an Error.

What am I missing and why does EA not show an error although the element is not created?

To be more specific, my ToolBoxPage metaclass is extended by a TestElement with 2 Attributes(SP:ADO = ADO, SP2:ADO = ADO2)

Best regards
« Last Edit: June 19, 2020, 12:58:30 am by sidietz »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
In most cases that is because the toolbox definition has a typo or something.

Have you tried to remove the toolbox attributes, and add them again using the profile helper?

Geert

PS. "ADO" might not be an ideal choice as stereotype as it might clash with an existing stereotype somewhere. I made it a habit of naming stereotypes with a prefix just like in ArchiMate. So my stereotype would be ABC_ADO, where "ABC" is an abbreviation of my profile name.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
To be more specific, my ToolBoxPage metaclass is extended by a TestElement with 2 Attributes(SP:ADO = ADO, SP2:ADO = ADO2)


Needs to be double colon, SP2::ADO
The Sparx Team
[email protected]

sidietz

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Needs to be double colon, SP2::ADO

Sorry, that was a typo in my forum post. In EA I used double colons.

Have you tried to remove the toolbox attributes, and add them again using the profile helper?

Geert

Removing the old toolbox and using the profile helper to recreate it fixed my issue, Thanks!