blob: 45dee178d2a974552b412f8ccb2e4d3a1561badb [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Windows (vers 25 March 2009), see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered)">
<title>Prepared example projects</title>
<link rel="Stylesheet" type="text/css" media="all" href=
"../book.css">
<style type="text/css">
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
h1
{mso-style-link:"�berschrift 1 Zchn";
margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
page-break-after:avoid;
font-size:16.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
h2
{mso-style-link:"�berschrift 2 Zchn";
margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;
font-style:italic;}
h3
{mso-style-link:"�berschrift 3 Zchn";
margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
h4
{mso-style-link:"�berschrift 4 Zchn";
margin-top:11.25pt;
margin-right:0cm;
margin-bottom:1.7pt;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;
font-style:italic;}
h5
{mso-style-link:"�berschrift 5 Zchn";
margin-right:0cm;
margin-left:0cm;
font-size:10.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
p.MsoCaption, li.MsoCaption, div.MsoCaption
{margin-top:6.0pt;
margin-right:0cm;
margin-bottom:24.0pt;
margin-left:0cm;
text-align:justify;
font-size:10.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin-top:5.65pt;
margin-right:0cm;
margin-bottom:5.65pt;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-link:"HTML Vorformatiert Zchn";
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:3.4pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.berschrift1Zchn
{mso-style-name:"�berschrift 1 Zchn";
mso-style-link:"�berschrift 1";
font-family:"Cambria","serif";
color:#365F91;
font-weight:bold;}
span.berschrift2Zchn
{mso-style-name:"�berschrift 2 Zchn";
mso-style-link:"�berschrift 2";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;}
span.berschrift3Zchn
{mso-style-name:"�berschrift 3 Zchn";
mso-style-link:"�berschrift 3";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;}
span.berschrift4Zchn
{mso-style-name:"�berschrift 4 Zchn";
mso-style-link:"�berschrift 4";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;
font-style:italic;}
span.berschrift5Zchn
{mso-style-name:"�berschrift 5 Zchn";
mso-style-link:"�berschrift 5";
font-family:"Cambria","serif";
color:#243F60;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-link:"HTML Vorformatiert";
font-family:"Consolas","serif";}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
p.code, li.code, div.code
{mso-style-name:code;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:15.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.note, li.note, div.note
{mso-style-name:note;
margin-top:19.5pt;
margin-right:0cm;
margin-bottom:19.5pt;
margin-left:30.0pt;
font-size:13.0pt;
font-family:"Times New Roman","serif";
font-style:italic;}
p.comment, li.comment, div.comment
{mso-style-name:comment;
margin-top:5.65pt;
margin-right:0cm;
margin-bottom:5.65pt;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
.MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:595.45pt 841.7pt;
margin:72.0pt 89.85pt 72.0pt 89.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body bgcolor="white" lang="DE" link="blue" vlink="purple" style=
'margin-bottom:12.0pt'>
<div class="Section1">
<h1><span lang="EN-GB">Prepared Example Project</span></h1>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<p class="MsoNormal"><span lang="EN-GB" style='color:black'>There
is one prepared example project containing the sources for this
tutorial. It shows more or less the <b>resulting project</b>,
which you should have <b>at the end of this
tutorial</b>.</span></p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<p class="MsoNormal"><i><span lang="EN-GB" style=
'color:black'>Note: it can happen that the code snippets in the
tutorial are different from the code in the example project. This
means that the example project is outdated. In such a case please
tell us, and we will update the example project
immediately.</span></i></p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<h2><span lang="EN-GB">The Example Project</span></h2>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;<i>org.eclipse.graphiti.examples.tutorial</i></span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><span lang="EN-GB" style='color:black'>This
plug-in contains the complete sources for the graphics framework
tutorial.</span></p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<h2><span lang="EN-GB">Installation Of the Example
Project</span></h2>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>Ensure that plug-ins</span> <span lang="EN-GB"
style='color:black'><i>org.eclipse.graphiti.examples.tutorial
and</i></span> <span lang="EN-GB" style=
'color:black'><i>org.eclipse.graphiti.examples.common</i> are
installed in your IDE. The latter includes inter alia wizards for
project and diagram creation, and a tree.</span></p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<h2><span lang="EN-GB">Test: Open the Empty Diagram
Editor</span></h2>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<p class="MsoNormal"><span lang="EN-GB" style='color:black'>It
should at least be possible to create and open a
diagram.</span></p>
<p class="MsoNormal"><span lang="EN-GB" style='color:black'>For
this first test perform the following steps:</span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><span lang="EN-GB">1. Run your target
platform.</span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><span lang="EN-GB">2. Open the project
explorer (e.g. activate Resource perspective)</span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><img width="561" height="130" src=
"visio/file-new-project.png" alt=""></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoCaption"><span lang="EN-US"><a name=
"Figure:_3._Start_the_New_project...-wizard" id=
"Figure:_3._Start_the_New_project...-wizard">Figure: Start the
"New&quot; </a></span><span style="font-family: Symbol" lang="EN-GB">
<a name=
"Figure:_On_the_selected_project_open_context_menu:_New__�_Diagram0">
®</a> </span><span lang="EN-US">
<a name=
"Figure:_3._Start_the_New_project...-wizard" id=
"Figure:_3._Start_the_New_project...-wizard">&quot;Project..."-wizard</a></span></p>
<p class="MsoNormal"><img border="0" src=
"visio/new-gfw-project.png" width="511" height="495" alt=""></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoCaption"><span lang="en-gb"><a name=
"Figure:_Select_New_Graphiti_Sample_Project_as_project_type" id=
"Figure:_Select_New_Graphiti_Sample_Project_as_project_type">Figure:
Select "Graphiti Sample Project" as project type</a></span></p>
<p class="MsoNormal"><img border="0" src=
"visio/new-gfw-project-2.png" width="511" height="495" alt=
""></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoCaption"><a name=
"Figure:_Insert_a_name_for_your_project" id=
"Figure:_Insert_a_name_for_your_project">Figure: Insert a name
for your project</a> and hit "Finish" button</p>
<p class="MsoNormal"><img border="0" src=
"visio/project-explorer.png" alt=""></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoCaption"><a name="Figure:_The_newly_created_project"
id="Figure:_The_newly_created_project">Figure: The newly created
project</a></p>
<p class="MsoCaption">
<img border="0" src="visio/new-other.png" width="544" height="306"></p>
<p class="MsoCaption">Figure: <span lang="EN-GB">
<a name="Figure:_On_the_selected_project_open_context_menu:_New__�_Diagram1">
On the selected project open context menu: &quot;New&quot;
<span style="font-family: Symbol">®</span> </a>&quot;Other...&quot;</span></p>
<p class="MsoCaption">
<img border="0" src="visio/new-diagram.png" width="500" height="500"></p>
<p class="MsoCaption">
<span lang="EN-GB"><a name=
"Figure:_On_the_selected_project_open_context_menu:_New__�_Diagram">
Figure: From the list of wizards select &quot;Graphiti
Diagram</a>&quot;</span></p>
<p class="MsoNormal"><img border="0" src=
"visio/digram-type-tutorial.png" width="437" height="414" alt=
""></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoCaption"><span lang="EN-GB"><a name=
"Figure:_Specify_diagram_type:_�tutorial�_and_push_Next_button">Figure:
Specify diagram type: &quot;tutorial&quot; and hit "Next"
button</a></span></p>
<p class="MsoNormal"><img border="0" src="visio/diagram-name.png"
width="438" height="415" alt=""></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoCaption"><span lang="EN-GB"><a name=
"Figure:_Specify_diagram_name_and_push_Finish_button" id=
"Figure:_Specify_diagram_name_and_push_Finish_button">Figure: Specify the
diagram name and hit "Finish" button</a></span></p>
<p class="MsoNormal"><span lang="EN-GB">Diagram is opened
automatically with your editor. Result is shown in the image
below.</span></p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;<img border="0" src=
"visio/project-explorer-editor.png" alt=""></span></p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>&nbsp;</span></p>
<p class="MsoCaption"><span lang="EN-US"><a name=
"_Toc176747802">Figure: Empty diagram is opened in
editor</a></span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><span lang="EN-GB" style=
'color:black'>Depending on the functionality already provided in
your editor, you can continue to test further
functionality.</span></p>
<p class="MsoNormal"><span lang="EN-US" style=
'color:black'>&nbsp;</span></p>
</div>
<hr>
<a href="http://www.eclipse.org/legal/epl-v10.html" shape=
"rect">Copyright (c) SAP AG 2005, 2010.</a>
</body>
</html>