Book a Demo

Author Topic: Own Elements (UML Profile)  in Toolbox  (Read 3914 times)

TheTwo

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Own Elements (UML Profile)  in Toolbox
« on: May 14, 2008, 07:21:00 pm »
Hi,

I'm trying to develop a own Toolbox Profile with Elements from an own UML Profile. I've modeld the profiles in EA and exported them to UML Profiles. I've added the UML Profile and the Toolbox-Profile to an MDG Technology, copied the Technology file to the Technology folder of EA.

Now the new Toolbox is shown in EA but the Elements of my UML Profile could not be added to diagrams. I click on them (Datatype) in the Toolbox and the Curser changes, but when I click in the diagram no element is shown.

Is there an error in the namespace in the Tollboxdefinition of Datatype?

UML Profile:
Code: [Select]
<MDG.Technology version="1.0"><Documentation id="MOFMETAMODEL" name="MOF Metamodelling" version="1.0" notes="Meta Object Facility Metamodelling"/>
<UMLProfiles>
    <UMLProfile profiletype="uml2">
        <Documentation id="D0F487A1-3" name="MOFElements" version="1.0" notes="MOFElements"/>
        <Content>
            <Stereotypes>
                <Stereotype name="Datatype" metatype="DataType" notes="" strictness="all">
                    <AppliesTo>
                        <Apply type="Class">
                            <Property name="isActive" value=""/>
                        </Apply>
                    </AppliesTo>
                </Stereotype>
            </Stereotypes>
            <TaggedValueTypes/>
        </Content>
    </UMLProfile>
</UMLProfiles>

Toolbox definition:
Code: [Select]
<UIToolboxes>
<UMLProfile profiletype="uml2">
<Documentation id="1D709A9F-0" name="MOFToolbox" version="1.0" notes="MOFToolbox"/>
<Content>
<Stereotypes>
<Stereotype name="MOFLON_Elements" notes="Alias=MOFElements;Notes=;">
    <AppliesTo>
        <Apply type="ToolboxPage">                        <Property name="isActive" value=""/>
        </Apply>
    </AppliesTo>
    <TaggedValues>
        <Tag name="MOFElements::Datattype(UML::Class)" type="" description="" unit="" values="" default="MOF DataType"/>
        <Tag name="UML::Class" type="" description="" unit="" values="" default="MOF Class"/>
    </TaggedValues>
</Stereotype>
....

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Own Elements (UML Profile)  in Toolbox
« Reply #1 on: May 14, 2008, 07:27:37 pm »
In the toolbox profile you have "Datattype" with a double t.

Unfortunalety in case of misspellings EA does not show a message box like "element type not found", but simply does nothing at all when you try to drag an element from a toolbox page to a diagram.

TheTwo

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Own Elements (UML Profile)  in Toolbox
« Reply #2 on: May 14, 2008, 07:35:47 pm »
Thank you. I've searched nearly one day and didn't find it. Now it works.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Own Elements (UML Profile)  in Toolbox
« Reply #3 on: May 14, 2008, 08:40:34 pm »
In my first profile, I forgot a colon (UML:Class instead of UML::Class). Searched for hours but didn't see it. Sent the profile to Sparx support...

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Own Elements (UML Profile)  in Toolbox
« Reply #4 on: May 14, 2008, 10:10:24 pm »
I've made the point here in the forum - as well as at length to Sparx - that this whole process is fragile. In a large profile there are numerous manual steps and no real feature support for catching small errors.

No success so far in moving this forward.

Sigh...
No, you can't have it!