diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.doc/html/etrice-docch4.html')
-rw-r--r-- | plugins/org.eclipse.etrice.doc/html/etrice-docch4.html | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.doc/html/etrice-docch4.html b/plugins/org.eclipse.etrice.doc/html/etrice-docch4.html new file mode 100644 index 000000000..20fd4b444 --- /dev/null +++ b/plugins/org.eclipse.etrice.doc/html/etrice-docch4.html @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="iso-8859-1" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd--> +<html xmlns="http://www.w3.org/1999/xhtml" +> +<head><title>4 Setting up the Workspace for Java Projects</title> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> +<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> +<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> +<!-- xhtml,3,next,html --> +<meta name="src" content="etrice-doc.tex" /> +<meta name="date" content="2013-03-25 22:23:00" /> +<link rel="stylesheet" type="text/css" href="etrice-doc.css" /> +</head><body +> +<!--l. 1--><div class="crosslinks"><p class="noindent">[<a +href="etrice-docch5.html" >next</a>] [<a +href="etrice-docch3.html" >prev</a>] [<a +href="etrice-docch3.html#tailetrice-docch3.html" >prev-tail</a>] [<a +href="#tailetrice-docch4.html">tail</a>] [<a +href="etrice-doc.html#etrice-docch4.html" >up</a>] </p></div> +<h2 class="chapterHead"><span class="titlemark">Chapter 4</span><br /><a + id="x11-250004"></a>Setting up the Workspace for Java Projects</h2> +<!--l. 3--><p class="noindent" >ETrice generates code out of ROOM models. The code generator and the generated +code relies on a runtime framework and on some ready to use model parts. This parts +provide services like: +</p> + <ul class="itemize1"> + <li class="itemize">messaging + </li> + <li class="itemize">logging + </li> + <li class="itemize">timing</li></ul> +<!--l. 11--><p class="noindent" >Additionally some tutorial models will be provided to make it easy to start with +eTrice. All this parts must be available in our workspace before you can start +working. After installation of eclipse (juno) and the eTrice plug in, your workspace +should look like this: +</p><!--l. 13--><p class="noindent" ><img +src="images/013-SetupWorkspace01.png" alt="PIC" + /> +</p><!--l. 16--><p class="noindent" >Just the <span +class="ecti-1000">eTrice </span>menu item is visible from the eTrice tool. From the <span +class="ecti-1000">File </span>menu select +<span +class="ecbx-1000">File->New->Project</span> +</p><!--l. 19--><p class="noindent" ><img +src="images/013-SetupWorkspace02.png" alt="PIC" + /> +</p><!--l. 22--><p class="noindent" >Open the <span +class="ecti-1000">eTrice </span>tab and select <span +class="ecti-1000">eTrice Java Runtime</span> +</p><!--l. 24--><p class="noindent" >Press <span +class="ecti-1000">Next </span>and <span +class="ecti-1000">Finish </span>to install the Runtime into your workspace. +</p><!--l. 26--><p class="noindent" ><img +src="images/013-SetupWorkspace03.png" alt="PIC" + /> +</p><!--l. 29--><p class="noindent" >Do the same steps for <span +class="ecti-1000">eTrice Java Modellib </span>and <span +class="ecti-1000">eTrice Java Tutorials</span>. To avoid +temporary error markers you should keep the proposed order of installation. The +resulting workspace should look like this: +</p><!--l. 31--><p class="noindent" ><img +src="images/013-SetupWorkspace04.png" alt="PIC" + /> +</p><!--l. 34--><p class="noindent" >Now workspace is set up and you can perform the tutorials or start with your +work. +</p><!--l. 36--><p class="noindent" >The tutorial models are available in the <span +class="ecti-1000">org.eclipse.etrice.tutorials </span>project. All +tutorials are ready to generate and run without any changes. To start the +code generator simply run <span +class="ecbx-1000">gen_org.eclipse.etrice.tutorials.launch </span>as +<span +class="ecbx-1000">gen_org.eclipse.etrice.tutorials.launch</span>: + +</p><!--l. 38--><p class="noindent" ><img +src="images/013-SetupWorkspace05.png" alt="PIC" + /> +</p><!--l. 41--><p class="noindent" >After generation for each tutorial a java file called <span +class="ecbx-1000">SubSystem_ModelnameRunner.java</span> +is generated. To run the model simply run this file as a java application: +</p><!--l. 43--><p class="noindent" ><img +src="images/013-SetupWorkspace06.png" alt="PIC" + /> +</p><!--l. 46--><p class="noindent" >To stop the application type <span +class="ecti-1000">quit </span>in the console window. +</p><!--l. 48--><p class="noindent" ><img +src="images/013-SetupWorkspace07.png" alt="PIC" + /> + + + +</p><!--l. 51--><p class="noindent" >Performing the tutorials will setup an dedicated project for each tutorial. Therefore +there are some slight changes especially whenever a path must be set (e.g. to +the model library) within your own projects. All this is described in the +tutorials. + + + + + + + + + +</p> +<!--l. 1--><div class="crosslinks"><p class="noindent">[<a +href="etrice-docch5.html" >next</a>] [<a +href="etrice-docch3.html" >prev</a>] [<a +href="etrice-docch3.html#tailetrice-docch3.html" >prev-tail</a>] [<a +href="etrice-docch4.html" >front</a>] [<a +href="etrice-doc.html#etrice-docch4.html" >up</a>] </p></div> +<!--l. 1--><p class="noindent" ><a + id="tailetrice-docch4.html"></a> </p> +</body></html> |