Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: mse on October 17, 2024, 04:17:40 am

Title: Cannot properly display profile toolbox
Post by: mse on October 17, 2024, 04:17:40 am
I am trying again and again to load a custom toolbox based on some stereotypes, but the only thing I get in the toolbox is the 1 stereotype, which is the toolbox itself. I have added multiple stereotypes to my toolbox and properly extended the ToolboxPage metaclass, but I still get the same results. Even the ToolboxPage helper did not get me anywhere. Here is the xml of the profile, when saved from the Specialize > Publish diagram as profile:

Code: [Select]
<?xml  version='1.0' encoding='windows-1252' ?>
<UMLProfile profiletype="uml2">
<Documentation id="55C4D76C-8" name="OOSEMToolbox" version="1.0" notes="OOSEMToolbox"/>
<Content>
<Stereotypes>
<Stereotype name="myToolbox" notes="a tooltip" cx="307" cy="100" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="ToolboxPage"/>
</AppliesTo>
<TaggedValues>
<Tag name="OOSEM::configuration item(UML::Class)" type="" description="" unit="" values="" default=""/>
<Tag name="OOSEM::file(UML::Class)" type="" description="" unit="" values="" default=""/>
<Tag name="OOSEM::hardware(UML::Class)" type="" description="" unit="" values="" default=""/>
<Tag name="OOSEM::operator(UML::Class)" type="" description="" unit="" values="" default=""/>
<Tag name="OOSEM::software(UML::Class)" type="" description="" unit="" values="" default="Software"/>
<Tag name="OOSEM::system of interest(UML::Class)" type="" description="" unit="" values="" default="System of INterest"/>
</TaggedValues>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
<ViewDefinitions/>
<Metamodel/>
</Content>
</UMLProfile>
Title: Re: Cannot properly display profile toolbox
Post by: Geert Bellekens on October 17, 2024, 04:30:31 am
You better restart from the sample or start model (from the model wizard)

a toolbox in xml looks like this:

Quote
<UIToolboxes>
    <UMLProfile profiletype="uml2">
      <Documentation id="DDF02911-0" name="Application" version="1.0" notes="Application"/>
      <Content>
        <Stereotypes>
          <Stereotype name="Active Structure (Application) Concepts" notes="">
            <AppliesTo>
              <Apply type="ToolboxPage"/>
            </AppliesTo>
            <TaggedValues>
              <Tag name="ArchiMate3::ArchiMate_ApplicationComponent" type="" description="" unit="" values="" default="Application Component"/>
              <Tag name="ArchiMate3::ArchiMate_ApplicationCollaboration(UML::Class)" type="" description="" unit="" values="" default="Application Collaboration"/>
              <Tag name="ArchiMate3::ArchiMate_ApplicationInterface" type="" description="" unit="" values="" default="Application Interface"/>
            </TaggedValues>
          </Stereotype>

Geert
Title: Re: Cannot properly display profile toolbox
Post by: mse on October 17, 2024, 06:43:05 pm
Strangely, only after creating a MDG technology was I able to get the results I needed. I thought I could just import the profile and use it.
Title: Re: Cannot properly display profile toolbox
Post by: Geert Bellekens on October 17, 2024, 07:59:35 pm
Strangely, only after creating a MDG technology was I able to get the results I needed. I thought I could just import the profile and use it.
No, importing a profile only works for stereotypes, not for toolboxes or diagram types.

Geert