Book a Demo

Author Topic: Toolbox profiles ---> What am I doing wrong???????  (Read 4817 times)

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Toolbox profiles ---> What am I doing wrong???????
« 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>

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Toolbox profiles ---> What am I doing wrong
« Reply #1 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>
« Last Edit: October 24, 2008, 09:09:38 am by KP »
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox profiles ---> What am I doing wrong???
« Reply #2 on: October 24, 2008, 09:28:07 am »
That would definitely do it.
No, you can't have it!

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Toolbox profiles ---> What am I doing wrong???
« Reply #3 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...

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox profiles ---> What am I doing wrong???
« Reply #4 on: October 24, 2008, 11:44:41 pm »
Mom said there would be those days...

Glad we could help.
No, you can't have it!

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Toolbox profiles ---> What am I doing wrong???
« Reply #5 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,

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox profiles ---> What am I doing wrong???
« Reply #6 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.
No, you can't have it!