Author Topic: Toolbox Help  (Read 4090 times)

almacivor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Toolbox Help
« 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>

almacivor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Toolbox Help
« Reply #1 on: July 27, 2009, 07:33:33 pm »
Ah, cracked it now.

The prefix for my stereotypes didn't match the profile name :)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Toolbox Help
« Reply #2 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,
  • 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:
    Code: [Select]
    <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
« Last Edit: December 02, 2009, 07:59:40 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Toolbox Help
« Reply #3 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Toolbox Help
« Reply #4 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?
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Toolbox Help
« Reply #5 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!