Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: almacivor on July 20, 2009, 07:45:45 pm

Title: Toolbox Help
Post 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 &#xA;">
                                    <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>
Title: Re: Toolbox Help
Post by: almacivor on July 27, 2009, 07:33:33 pm
Ah, cracked it now.

The prefix for my stereotypes didn't match the profile name :)
Title: Re: Toolbox Help
Post by: Paolo F Cantoni on December 02, 2009, 07:51:04 pm
 
Quote
Ah, cracked it now.

The prefix for my stereotypes didn't match the profile name :)
I'm getting the same effect,
Title: Re: Toolbox Help
Post by: Paolo F Cantoni on December 04, 2009, 09:36:36 am
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
Title: Re: Toolbox Help
Post by: KP on December 04, 2009, 10:01:41 am
Quote
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?
Title: Re: Toolbox Help
Post by: Paolo F Cantoni on December 04, 2009, 05:26:19 pm
Quote
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