blob: 44b851f38332782a078ba0e31e0f41c8a2c84dba [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 5: Extending base method content associated with a Work Product using <u>Extends</u> </a></h2>
<p>The purpose of this exercise is to extend a base method work product using extends variability. </p>
<ol>
<li>
<p> Switch to the <strong>Authoring </strong> perspective. </p>
</li>
<li>
<p> Create a new <strong>Work Product </strong> in the <span class="style1">Extends Test</span> Content Package called <span class="style1">my_extends_rup_navmap</span> with the presentation name, <span class="style1">Extends RUP Navmap</span>. </p>
</li>
<li>
<p> In the <strong>Variability Type </strong> select <strong>extends </strong> and choose the base <strong>Work Product </strong><span class="style1">rup_navmap</span>. </p>
</li>
<li>
<p> Add a <strong>Brief Description </strong>: Extends Navmap Brief Description. </p>
</li>
<li>
<p> Save and then switch to the <strong>Browsing </strong> perspective. </p>
</li>
<li>In the <strong>Configuration View</strong>, select the <span class="style1">Extends RUP Navmap</span> work product in the <strong>Uncategorized Folder </strong> under <strong>Domains </strong>. You will see in the html page that content entered in the extending artifact has been replaced, whereas content not provided has been inherited from the base artifact. Note that the extended artifact <span class="style1">Navigation Map</span> remains unchanged.</li>
</ol>
</body>
</html>