Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: almacivor on July 20, 2009, 07:45:45 pm
-
Hi,
I'm trying to develop a custom toolbox, and i've successfully got the toolbox to appear, but when I drag the items onto a diagram, nothing seems to happen.
The pointer changes to a plus sign, but thats about it.
I enclose the segment of the MDG XML file..
<UIToolboxes><UMLProfile profiletype="uml2">
<Documentation id="A315B280-5" name="MDSOATools" version="1.0" notes="MDSOATools"/>
<Content>
<Stereotypes>
<Stereotype name="SOAClassElements" alias="MD SOA Components" notes="A set of components from the reference architecture which can be used to define a SOA solution 
">
<AppliesTo>
<Apply type="ToolboxPage"/>
</AppliesTo>
<TaggedValues>
<Tag name="MDSOA::InformationService(UML::Component)" type="" description="Test tool tip description1" unit="" values="" default="Information Service"/>
<Tag name="MDSOA::ProcessService(UML::Component)" type="" description="" unit="" values="" default="Process Service"/>
</TaggedValues>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
</Content>
</UMLProfile>
</UIToolboxes>
-
Ah, cracked it now.
The prefix for my stereotypes didn't match the profile name :)
-
Ah, cracked it now.
The prefix for my stereotypes didn't match the profile name :)
I'm getting the same effect, - sign then nothing. I think I've got the prefix correct now - yes it was wrong before.
Here's the relevant section of the MTS file:
<UIToolboxes><UMLProfile profiletype="uml2">
<Documentation id="C513ED8B-B" name="ProgrammeModelling" version="1.0" notes="ProgrammeModelling"/>
<Content>
<Stereotypes>
<Stereotype name="ProgrammeModellingElements" alias="PM_Elements" notes="" cx="301" cy="215" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="ToolboxPage"/>
</AppliesTo>
<TaggedValues>
<Tag name="ProgrammeModelling::ZZZB(UML::Class)" type="int" description="" unit="" values="" default="ZZZBx"/>
</TaggedValues>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
</Content>
Any other ideas as to what's going wrong?
There seems to be NO validation for the MDG stuff so typos can (and
have) wreak havoc.
TIA,
Paolo
-
Hi,
No joy in fixing this yet...
Can a kind soul please post a simple example of a stereotype extending a metaclass that successfully drags from the toolbox?
TIA,
Paolo
-
Hi,
No joy in fixing this yet...
Can a kind soul please post a simple example of a stereotype extending a metaclass that successfully drags from the toolbox?
TIA,
Paolo
Have a look in C:\Program Files\Sparx Systems\EA\MDGTechnologies. There's lots of examples in there.
Looking at your XML snippet, ProgrammeModelling is the name of your toolbox profile. Is it also the name of the UML Profile which contains the ZZZB stereotype?
-
Have a look in C:\Program Files\Sparx Systems\EA\MDGTechnologies. There's lots of examples in there.
Looking at your XML snippet, ProgrammeModelling is the name of your toolbox profile. Is it also the name of the UML Profile which contains the ZZZB stereotype?
Hi Neil,
I've been off the air since I posted this morning... But I've managed to sort out a working XML while off-line... Now I need to figure out why my model (and or the process) isn't generating the valid XML and then I'll post the explanation. The problem does seem to be related to the reuse of the same name.
But thanks for the pointers,
Paolo