Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Sygnus on October 24, 2008, 05:25:13 am

Title: Toolbox profiles ---> What am I doing wrong???????
Post by: Sygnus on October 24, 2008, 05:25:13 am
Hi there.

I'm trying to build a MDG Tech from some profiles, and right when I tgought I was down to the easiest part, I found myself unable to create a Toolbox profile that works!!!

I started with the very basic example from the manual, and then did some more cut-down, to achieve the XML profile below, edited the mts file to include it as the toolbox, but no toolbox appears when I select the Tech name on the more tools menu.

Code: [Select]
<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
      <Documentation id="68A6F949-2" name="ProjectToolbox" version="1.0" alias="Project" notes="Alias=Project;&#xA;Notes=Elements for creating Project Machines;"/>
      <Content>
            <Stereotypes>
                  <Stereotype name="GDN_Connectors" alias="Connectors" notes="Connectors" cx="133" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
                        <AppliesTo>
                              <Apply type="ToolboxPage "/>
                        </AppliesTo>
                        <TaggedValues>
                              <Tag name="UML::Package" type="int" description="" unit="" values="" default=""/>
                        </TaggedValues>
                  </Stereotype>
            </Stereotypes>
            <TaggedValueTypes/>
      </Content>
      <Options>
            <Option name="&#xA;Notes" value="Elements for creating Project Machines"/>
      </Options>
</UMLProfile>

I checked the tech xml file, and the toolbox is there, but still nothing shows!

Below is the last chunk from the mdg xml

Code: [Select]
<UIToolboxes><UMLProfile profiletype="uml2">
                  <Documentation id="68A6F949-2" name="ProjectToolbox" version="1.0" alias="Project" notes="Alias=Project;&#xA;Notes=Elements for creating Project Machines;"/>
                  <Content>
                        <Stereotypes>
                              <Stereotype name="GDN_Connectors" alias="Connectors" notes="Connectors" cx="133" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
                                    <AppliesTo>
                                          <Apply type="ToolboxPage "/>
                                    </AppliesTo>
                                    <TaggedValues>
                                          <Tag name="UML::Package" type="" description="" unit="" values="" default=""/>
                                    </TaggedValues>
                              </Stereotype>
                        </Stereotypes>
                        <TaggedValueTypes/>
                  </Content>
                  <Options>
                        <Option name="&#xA;Notes" value="Elements for creating Project Machines"/>
                  </Options>
            </UMLProfile>
      </UIToolboxes></MDG.Technology>
Title: Re: Toolbox profiles ---> What am I doing wrong
Post by: KP on October 24, 2008, 09:08:58 am
Hi sygnus,

It might be caused by the trailing blank in the metaclass name:
Code: [Select]
<AppliesTo>
      <Apply type="ToolboxPage[highlight] [/highlight]"/>
</AppliesTo>
Title: Re: Toolbox profiles ---> What am I doing wrong???
Post by: «Midnight» on October 24, 2008, 09:28:07 am
That would definitely do it.
Title: Re: Toolbox profiles ---> What am I doing wrong???
Post by: Sygnus on October 24, 2008, 10:13:07 pm
Right on!!

Thanks!!!!

Ctrl+C + Ctrl+V just to make sure I would not screw things up, and there goes an afternoon...
Title: Re: Toolbox profiles ---> What am I doing wrong???
Post by: «Midnight» on October 24, 2008, 11:44:41 pm
Mom said there would be those days...

Glad we could help.
Title: Re: Toolbox profiles ---> What am I doing wrong???
Post by: Sygnus on October 25, 2008, 12:14:40 am
A big help!!

One more, and this should be easy: how do I choose the order in which the pages will be shown?

Thanks again,
Title: Re: Toolbox profiles ---> What am I doing wrong???
Post by: «Midnight» on October 27, 2008, 09:27:59 pm
Assuming that's even possible, my guess would be the order in which they are shown in the XML file for the MDG Technology.