blob: a289b09f19644290857697d97f06e16efb4b5b7e [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--
Copyright (c) 2005, 2006 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
IBM Corporation - initial implementation
-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {font-family: "Courier New", Courier, mono}
-->
</style>
</head>
<body>
<h2><a>Exercise 1: Adding to base method content associated with a role using Contribution </a></h2>
<p>The purpose of this exercise is to extend a role in RUP using ‘contribution'. </p>
<ol>
<li>
<p>Switch to the <strong>Authoring </strong> perspective. </p>
</li>
<li>
<p>This exercise adds content to the My Plugin plugin. If you have not carried out the ‘Create Core Method Content tutorial, create it now. </p>
</li>
<li>
<p>Create a Content Package in the My Plugin plug-in called <span class="style1">Contribution</span> Test. </p>
</li>
<li>
<p>In the new Contribution Test content package, create a new Role: <span class="style1">my_contributing_ui_designer</span>. </p>
</li>
<li>
<p>Page down the Description tab to the Content Variability section and then, in the <strong>Variability Type </strong>, select <strong>Contributes </strong> and choose the base role: <strong>rup_user_interface_designer </strong>. You will find this in <strong>RUP &gt; Design &gt; GUI Design</strong>. </p>
</li>
<li> Complete the following: </li>
<blockquote>
<p>&#149;&nbsp; Add Brief Description: Contributing brief description text </p>
<p>&#149;&nbsp; Add Main Description : Contributing main description text </p>
<p>&#149;&nbsp; Save (by closing the role editor). </p>
</blockquote>
<li>
<p>Create a new Configuration by selecting the <strong>Configurations </strong> folder in the Library View tree. </p>
</li>
<li>
<p>Right click the folder to create new configuration and then name the configuration <span class="style1">Variability Configuration</span>. </p>
</li>
<li>
<p> Select the RUP base and your plug-in (My Plugin) by marking the checkboxes. Save the configuration (close the configuration tab). </p>
</li>
<li>
<p>Set “current configuration” – located under main menu bar as “Variability Configura tion”. </p>
</li>
<li>
<p>Switch to the <strong>Browsing</strong> perspective and then open the User-Interface Designer role. </p>
</li>
<li> You should see the text that you included in the Contributing role displayed in the User-Interface Designer. </li>
</ol>
<blockquote>
<p><strong>Note: </strong> 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. </p>
</blockquote>
<h2>&nbsp;</h2>
<h1>&nbsp;</h1>
</body>
</html>