# Simplified Usage of Profiles and Stereotypes

Contents

1. Simplified Usage of Profiles and Stereotypes
   1. Creating Profile and Stereotype
   2. Updating Stereotype

Papyrus provides a simplified way to create, apply and modify Profiles and Stereotypes. We call it 'simplified' comparatively to the way where one should first define Profile and Stereotypes, then apply the Profile, and finally apply and modify the Stereotype.

The simplified usage propose one single Dialog used to create a Profile and a Stereotype, then apply both to the selected element, and all in no more than two clicks ! Also, the same Dialog can be used to update the Stereotype definition, or the application values.

## Creating Profile and Stereotype

Select the UML element to apply the profile, right click -> Profile -> Update Profile ...
The following Dialog appears:

In Qualified Name, type the Profile name and the Stereotype name separated by '::'.

The metaclass should already be selected, based on the metaclass of the currently selected UML element. You can add metaclasses if you whish.

In Properties, add properties to your profile: click '+', then set the name, select a type, and set a value.

Clicking ' OK' will do the following:

- Create the Profile if needed
- Create the Stereotype if needed
- Create new properties
- Apply the Profile, if needed, to the uml::Package containing the selected uml element.
- Apply the Stereotype, if needed, to the selected uml element.
- Set values to the applied stereotype, if some values are set to the properties.

## Updating Stereotype

Select the UML element applying the profile to update, right click -> Profile -> Update Profile ...
In Qualified Name, type the beginning of the name of the Stereotype to update. The Content Assist should propose Stereotypes matching your input. Select your Stereotype. The Dialog should show the actual values of the Stereotype. You can change the Properties and their values.

If you change the name of the Stereotype or the Profile, this will create a new Stereotype.