Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.doc/help/SettinguptheWorkspaceforJavaProjects.html')
-rw-r--r--plugins/org.eclipse.etrice.doc/help/SettinguptheWorkspaceforJavaProjects.html129
1 files changed, 129 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.doc/help/SettinguptheWorkspaceforJavaProjects.html b/plugins/org.eclipse.etrice.doc/help/SettinguptheWorkspaceforJavaProjects.html
new file mode 100644
index 000000000..31d9ae110
--- /dev/null
+++ b/plugins/org.eclipse.etrice.doc/help/SettinguptheWorkspaceforJavaProjects.html
@@ -0,0 +1,129 @@
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Setting up the Workspace for Java Projects</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="eTrice User Guide">
+<link rel="up" href="index.html" title="eTrice User Guide">
+<link rel="prev" href="WorkingwiththeeTriceTutorials.html" title="Working with the eTrice Tutorials">
+<link rel="next" href="TutorialHelloWorldforJava.html" title="Tutorial HelloWorld for Java">
+</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 Workspace for Java Projects</h1>
+<div class="chapter" title="Setting up the Workspace for Java Projects">
+<div class="titlepage">
+<div>
+<div>
+<h2 class="title">
+<a name="SettinguptheWorkspaceforJavaProjects"></a>Setting up the Workspace for Java Projects</h2>
+</div>
+</div>
+</div>
+<p>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>
+<div class="itemizedlist">
+<ul class="itemizedlist" type="disc">
+<li class="listitem">
+<p>messaging</p>
+</li>
+<li class="listitem">
+<p>logging</p>
+</li>
+<li class="listitem">
+<p>timing</p>
+</li>
+</ul>
+</div>
+<p>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>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/013-SetupWorkspace01.png"></div>
+<p>
+
+</p>
+<p>Just the
+ <span class="emphasis"><em>eTrice</em></span> menu item is visible from the eTrice tool.
+ From the
+ <span class="emphasis"><em>File</em></span> menu select
+ <span class="emphasis"><em>File-&gt;New-&gt;Project</em></span>
+
+</p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/013-SetupWorkspace02.png"></div>
+<p>
+
+</p>
+<p>Open the
+ <span class="emphasis"><em>eTrice</em></span> tab and select
+ <span class="emphasis"><em>eTrice Java Runtime</em></span>
+
+</p>
+<p>Press
+ <span class="emphasis"><em>Next</em></span> and
+ <span class="emphasis"><em>Finish</em></span> to install the Runtime into your workspace.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/013-SetupWorkspace03.png"></div>
+<p>
+
+</p>
+<p>Do the same steps for
+ <span class="emphasis"><em>eTrice Java Modellib</em></span> and
+ <span class="emphasis"><em>eTrice Java Tutorials</em></span>. To avoid temporary error markers you should keep the proposed order of installation. The resulting workspace should look like this:
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/013-SetupWorkspace04.png"></div>
+<p>
+
+</p>
+<p>Now workspace is set up and you can perform the tutorials or start with your work.</p>
+<p>The tutorial models are available in the
+ <span class="emphasis"><em>org.eclipse.etrice.tutorials</em></span> project. All tutorials are ready to generate and run without any changes. To start the code generator simply run
+ <span class="bold"><strong>gen_org.eclipse.etrice.tutorials.launch</strong></span> as
+ <span class="bold"><strong>gen_org.eclipse.etrice.tutorials.launch</strong></span>:
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/013-SetupWorkspace05.png"></div>
+<p>
+
+</p>
+<p>After generation for each tutorial a java file called
+ <span class="bold"><strong>SubSystem_ModelnameRunner.java</strong></span> is generated. To run the model simply run this file as a java application:
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/013-SetupWorkspace06.png"></div>
+<p>
+
+</p>
+<p>To stop the application type
+ <span class="emphasis"><em>quit</em></span> in the console window.
+ </p>
+<p>
+
+</p>
+<div class="mediaobject">
+<img src="images/013-SetupWorkspace07.png"></div>
+<p>
+
+</p>
+<p>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>
+</div>
+</body>
+</html>

Back to the top