Book a Demo

Author Topic: Problem with linking diagram to toolbox  (Read 3488 times)

tekbe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Problem with linking diagram to toolbox
« on: May 11, 2010, 11:22:59 pm »
i've got a beginner question: following the instructions on
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/creatingmdgtechnologies.htm i created a minimal mdg file with a custom diagram and toolbox. After importing the technology the custom diagram is available but the toolbox is neither shown when such a diagram is opened nor selectable at all (I even tried the attributes 'isCommon' and 'isCollapsed'). I'm using EA 8.0.856.

Can you please point me to the error?

Here's the mdg xml file:

Code: [Select]
<MDG.Technology version="1.0">
      <Documentation id="MyMDG" name="MyMDG" version="0.1" notes="MyMDG" />
      <DiagramProfile>
            <UMLProfile profiletype="uml2">
                  <Documentation id="BE23E781-5" name="MyMDG" version="1.0" notes="MyMDG" />
                  <Content>
                        <Stereotypes>
                              <Stereotype name="MyDiagram" notes="used for special purposes" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1"
                                    borderwidth="-1" hideicon="0">
                                    <AppliesTo>
                                          <Apply type="Diagram_Logical">
                                                <Property name="alias" value="My" />
                                                <Property name="diagramID" value="mydiagram" />
                                                <Property name="toolbox" value="MyToolbox" />
                                          </Apply>
                                    </AppliesTo>
                              </Stereotype>
                        </Stereotypes>
                        <TaggedValueTypes />
                  </Content>
            </UMLProfile>
      </DiagramProfile>
      <UIToolboxes>
            <UMLProfile profiletype="uml2">
                  <Documentation id="027C57EF-8" name="MyToolbox" version="1.0" notes="MyToolbox" />
                  <Content>
                        <Stereotypes>
                              <Stereotype name="MyClassElements" alias="My Class Elements" notes="Elements for Class Diagrams" cx="90" cy="70" bgcolor="-1"
                                    fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
                                    <AppliesTo>
                                          <Apply type="ToolboxPage" />
                                    </AppliesTo>
                                    <TaggedValues>
                                          <Tag name="UML::Package" type="string" description="" unit="" values="" default="MyPackage" />
                                          <Tag name="UML::Class" type="string" description="" unit="" values="" default="MyClass" />
                                          <Tag name="isCommon" type="boolean" description="" unit="" values="true,false" default="true" />
                                          <Tag name="isCollapsed" type="boolean" description="" unit="" values="true,false" default="false" />
                                    </TaggedValues>
                              </Stereotype>
                        </Stereotypes>
                        <TaggedValueTypes />
                  </Content>
            </UMLProfile>
      </UIToolboxes>
</MDG.Technology>


KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Problem with linking diagram to toolbox
« Reply #1 on: May 12, 2010, 08:41:46 am »
Toolbox profiles don't work if you import your technology into your model's resource tree. Instead you need to deploy your technology as described here: http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/deploying_mdg_technologies.htm
The Sparx Team
[email protected]

tekbe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Problem with linking diagram to toolbox
« Reply #2 on: May 12, 2010, 07:34:38 pm »
Thanks. It works.  :)