## Exercise 1: Adding to base method content associated with a role using Contribution

The purpose of this exercise is to extend a role in RUP using ‘contribution'.

1. Switch to the Authoring perspective.

2. This exercise adds content to the My Plugin plugin. If you have not carried out the ‘Create Core Method Content tutorial, create it now.

3. Create a Content Package in the My Plugin plug-in called Contribution Test.

4. In the new Contribution Test content package, create a new Role: my_contributing_ui_designer.

5. Page down the Description tab to the Content Variability section and then, in the Variability Type , select Contributes and choose the base role: rup_user_interface_designer . You will find this in RUP > Design > GUI Design.

6. Complete the following:

> • Add Brief Description: Contributing brief description text

> • Add Main Description : Contributing main description text

> • Save (by closing the role editor).

7. Create a new Configuration by selecting the Configurations folder in the Library View tree.

8. Right click the folder to create new configuration and then name the configuration Variability Configuration.

9. Select the RUP base and your plug-in (My Plugin) by marking the checkboxes. Save the configuration (close the configuration tab).

10. Set “current configuration” – located under main menu bar as “Variability Configura tion”.

11. Switch to the Browsing perspective and then open the User-Interface Designer role.

12. You should see the text that you included in the Contributing role displayed in the User-Interface Designer.

> Note: The Configuration View resolves the variability relationships between related plug-ins in a configuration and shows the results as they will be published in a published web site.

##

#