Book a Demo

Author Topic: UML Profile - Toolbox definition  (Read 7056 times)

rafael tartalia

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
UML Profile - Toolbox definition
« on: April 15, 2009, 12:43:43 am »
Hi all,

I'm trying to define an toolbox for my own UML Profile, but i can't get sucess.
The project structure is this:

SpModel Profile
         |_ Profile View
                           |_ «profile» SPModel
                                            |_ SPModel (toolbox diagram)
                                            |_ Profiles diagrams...
                                            |_ Stereotypes, etc...

In SPModel diagram, i define an toolbox section item named CoreBusinessElements (stereotype), and add the following attribute to the the item (class):

    - SPModel::simpleGrid(UML::Class)

where simpleGrid is a stereotype into the package «profile» SPModel (stereotype for Class).

It doesn't work for me. I tried differents namespaces for it, and i can get sucess in this definiton.

Do anyone help me?
Exits tutorials for this, exception EA Help?
Thanks for all, and sorry for my poor english.

Rafael

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: UML Profile - Toolbox definition
« Reply #1 on: April 15, 2009, 03:47:36 pm »
Hi Rafael,


Could you please clarify what you mean by the "toolbox diagram?" I'm not familiar with this.

In general, the steps to define a UML Profile and get it to work in a project are these:

1) Define the Profile
2) Save the Profile
    This is done by right-clicking either the <<profile>> Package in the Project Browser, or the profile's logical diagram. These two have slightly different effects; I prefer the former.
3) Import the Profile
    This is done in the Resources window by right-clicking the UML Profiles branch
4) If you wish, you can add the toolbox for your Profile to the toolbox panel by right-clicking in one of the toolbox sections and selecting Set Toolbox Visibility. (Right-clicking in the unused area of the panel gives no response.) If you don't do this, you can still click-and-drag your stereotypes onto diagrams from the Resources window.

Hope this helps,


/Uffe
My theories are always correct, just apply them to the right reality.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: UML Profile - Toolbox definition
« Reply #2 on: April 15, 2009, 03:56:17 pm »
Hi Uffe,

What you have described was the recommended method up until EA 6.5. From EA 7.0, it has been possible to define custom toolboxes as part of an MDG Technology. This is all described in the help file, here: http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/custom_toolboxes.html

Regarding Rafael's difficulties, I can't tell what you've done wrong from your description. If you would like to send in a support request to Sparx support, somebody will have a look at it for you. Useful things to send in would include a zipped up copy of the model with your profiles in (or an XMI export of them) and/or a copy of your technology XML file.

Neil :)
« Last Edit: April 15, 2009, 03:56:56 pm by KP »
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: UML Profile - Toolbox definition
« Reply #3 on: April 15, 2009, 09:47:32 pm »
Uffe and Rafael,

Remember that you also need to use the new (as of EA 7.x) method of loading a profile. Through EA 6.x profiles were loaded via the Resources view. The newer MDG Technology profiles are added via the Settings | MDG Technologies dialog. You will have to put your profile files in a folder or URL that you specify using said dialog. EA will handle the rest. It's all in the documentation, once you know you should look for it.

HTH, David

PS: There are also new API calls to manage technologies. The older ones are marked as depreciated (or something).
« Last Edit: April 15, 2009, 09:48:31 pm by Midnight »
No, you can't have it!

rafael tartalia

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: UML Profile - Toolbox definition
« Reply #4 on: April 16, 2009, 12:48:36 am »
Hi Neil!
I sent the mail to support.
Thanks.

rafael tartalia

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: UML Profile - Toolbox definition
« Reply #5 on: April 16, 2009, 12:52:02 am »
Thanks for all!

greentea

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: UML Profile - Toolbox definition
« Reply #6 on: April 24, 2009, 11:19:21 pm »
Hi Rafael,

I'm having a similar issue.
What was the problem with your definitions, in the end?

Cheers,
Andrea.

rafael tartalia

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: UML Profile - Toolbox definition
« Reply #7 on: April 24, 2009, 11:46:59 pm »
Hi Andrea,

You can't get this result generating UML Profile only. To customize your toolbox you need to define it in a separate UML Profile, generate an MDG Tecnology, and after this, manually add the Toolbox Profile to MTS generated file. Look at the MDG tecnology in help contents to more details about this.
Is very important that you don't add the Toolbox Profile to MDG Tecnology (you'll be asked to add profiles to MDG Tecnology - only add your UML Profiles)
In resume, is this.
If you wish, I can forward to you the support mail about this.

Regards,

Rafael