A Profile must be defined in a separate file. Most of the work will be done through the Outline.
Creation of the UML Profile file
- Use the creation wizard to create a new UML Diagram. Give a name to your Profile and select the template called " Profile Template "
- Then, click on "Finish". The graphical editor is opened but as we said before, we mainly use the outline to edit our Profile. A more complete diagram could be available in a further version.
Edition of the Profile
- First, you have to create the different Stereotypes that your Profile should provide. You have the choice to create them directly from the outline, or in the Editing View :
- From the outline : Open the contextual menu by right clicking on the Profile and then choose "Create child > Packaged Element Stereotype". Give a name to the Stereotype through the Properties View.
- From the editing window : To create a new Stereotype , select the 'Stereotype' creation tool in the palette and then click on the diagram. You can then set the name of the Stereotype directly in the editor or in the Properties View.
-
Then, we have to define the elements that belong to these stereotypes. Select the Profile element, "Right Click > Define Profile".
-
A dialog window appears and allows you to customize the Profile. Each Stereotype that you have previously defined in your Profile is associated with a Tab.
-
The main customization consists in indicating for each Stereotype, the element on which it will be applicable. Click on the "..." button to open a window and choose the metamodel objects that will be associated with each Stereotype.
- When you have finished to fill all the needed informations, click on the "OK" button to validate.
- Elements are then added into the Profile model. We will not explain in details the meaning of these elements, but they are necessary to correctly define a Profile.
- Note that a Profile has a version tag. In fact, each time you will redefine the Profile, the version tag is incremented and the old references of the Profile are not available anymore.
Your profile is ready, you can close the file and go to the next tutorial to see how to apply a Stereotype.
_______________________________________
By Jacques LESCOT, Anyware Technologies
August, 25 2006