## Exercise 7: Extending base method content using Replace variability

The purpose of this exercise is to extend base method content using replace variability.

1. Switch to the Authoring perspective.

2. Create a new content package named, Replace Test, in the My Plugin plug-in.

3. Create a new role : my_replace_ui_designer role with presentation name, My Replace UI Designer.

4. In the Variability Type select replaces and then choose the base role : rup_user_interface_designer.

5. Add a Brief Description : Replace Brief Description.

6. Add a Main Description : Replace Main Description.

7. Save the role by closing the role editor.

8. Update the Variability Test Configuration:

> • Open the Variability Configuration and expand My Plugin > Method Content > Content Packages.

> • Uncheck Extends Test.

> • Check Replace Test. This is done so there are no conflicting extensions in the same method element.

9. Switch to the Browsing perspective.

10. In the Configuration View, you will see that there is no longer a (RUP) User-Interface Designer role in the Role Sets folder. It was replaced by My Replace UI Designer role. Moreover, other content elements in the base plug-in that referenced the (RUP) User-Interface Designer role now reference the replacing role instead (e.g., if you open the disciplines folder and view the task Design The User Interface you will see that the Performing Role is now My Replace UI Designer.) Replace works in a similar way for tasks, artifacts , guidance and categories (feel free to try it out).