blob: d31796ba678977e4e2464c04d4cad3692aea4159 [file] [log] [blame]
<html>
<head>
<title>Setting up the project</title>
<link href="book.css" rel="stylesheet" type="text/css"/>
<meta content="DocBook XSL Stylesheets V1.75.1" name="generator"/>
<link rel="home" href="index.html" title="Xpand Documentation"/>
<link rel="up" href="uml2example.html" title="UML2 Example"/>
<link rel="prev" href="uml2example.html" title="UML2 Example"/>
<link rel="next" href="uml2example_create_model.html" title="Creating a UML2 Model"/>
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Setting up the project</h1>
<div class="section" title="Setting up the project">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="uml2example_setup_project"/>Setting up the project</h2>
</div>
</div>
</div>
<p>Create a new Xpand plugin project named
<span class="emphasis">
<em>xpand.uml2.generator</em>
</span>. To tell the Xpand Eclipse
plugins that this project is a UML2 specific one, you need to configure
the Meta Model contributors. You need to add the <span class="emphasis">
<em>UML2
profiles</em>
</span> and the <span class="emphasis">
<em>EMF Metamodels</em>
</span> metamodel
contributor<a name="N12EF0" class="indexterm"/>. The order of profiles is important! The UML2 profiles
entry must be first in the list.</p>
<div class="figure">
<a name="uml2example_metamodel_config"/>
<p class="title">
<b>Figure 1. Configure UML2 profiles metamodel</b>
</p>
<div class="figure-contents">
<div class="mediaobject">
<img src="images/uml2_example/wizard.png" alt="Configure UML2 profiles metamodel"/>
</div>
</div>
</div>
<p>
<br class="figure-break"/>
</p>
<p>You have to add the following dependencies to the manifest file:
</p>
<div class="itemizedlist">
<ul class="itemizedlist" type="disc">
<li class="listitem">
<p>
<code class="classname">org.eclipse.xtend.typesystem.uml2</code>
</p>
</li>
</ul>
</div>
</div>
</body>
</html>