Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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.
<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
<Documentation id="68A6F949-2" name="ProjectToolbox" version="1.0" alias="Project" notes="Alias=Project;
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="
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
<UIToolboxes><UMLProfile profiletype="uml2">
<Documentation id="68A6F949-2" name="ProjectToolbox" version="1.0" alias="Project" notes="Alias=Project;
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="
Notes" value="Elements for creating Project Machines"/>
</Options>
</UMLProfile>
</UIToolboxes></MDG.Technology>
-
Hi sygnus,
It might be caused by the trailing blank in the metaclass name:
<AppliesTo>
<Apply type="ToolboxPage[highlight] [/highlight]"/>
</AppliesTo>
-
That would definitely do it.
-
Right on!!
Thanks!!!!
Ctrl+C + Ctrl+V just to make sure I would not screw things up, and there goes an afternoon...
-
Mom said there would be those days...
Glad we could help.
-
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,
-
Assuming that's even possible, my guess would be the order in which they are shown in the XML file for the MDG Technology.