Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Editing ETrice/Development/GettingStartedWithEtrice"
Ts.protos.de (Talk | contribs) |
Ts.protos.de (Talk | contribs) |
||
Line 9: | Line 9: | ||
== Setting up Runtime Workspace == | == Setting up Runtime Workspace == | ||
* start the runtime workspace: org.eclipse.etrice.core.room.ui -> eTrice-rt.launch (contextmenu -> Run As) | * start the runtime workspace: org.eclipse.etrice.core.room.ui -> eTrice-rt.launch (contextmenu -> Run As) | ||
− | * | + | * check out the runtime projects from your local GIT clone |
+ | ** org.eclipse.etrice.doc.tutorials | ||
+ | ** org.eclipse.etrice.modellib | ||
+ | ** org.eclipse.etrice.runtime.java | ||
+ | |||
+ | == Editing the Model == | ||
+ | * the first model you find in org.eclipse.etrice.doc.tutorials/model/scratch/PingPong.room (doubleclick for editor) | ||
+ | * if the room editor has the focus, you can see all your model elements in the outline view | ||
+ | * with a right click on an actor (e.g. MrPingActor) you can | ||
+ | ** Edit Structure | ||
+ | ** Edit Behavior | ||
+ | * Important: You have to save every "dirty" editor before opening another editor | ||
+ | == Code Generator == | ||
+ | * org.eclipse.etrice.doc.tutorials -> genAllTutorials.mwe2.launch -> (contextmenu)Run As -> genAllModels.mwe2 | ||
+ | * you will find the generated code in org.eclipse.etrice.doc.tutorials/src-gen | ||
+ | |||
+ | == Run == | ||
+ | * org.eclipse.etrice.doc.tutorials/src-gen/PingPong/SubSystem_PingPongRunner.java -> Run As -> Java Application | ||
+ | * in the View Console you can see the debugging output of the running model | ||
+ | * enter "quit" and <enter> in the Console to stop the running application (you should) |
Revision as of 08:22, 13 May 2011
Contents
Preconditions
- get the sources ( work with GIT repository )
- download the latest version of Eclipse Modeling Tools (e.g. http://eclipse.org/downloads/packages/eclipse-modeling-tools-includes-incubating-components/indigom7)
- make sure you are using a JDK (in Eclipse: Window->Preferences->Java->Installed JREs->e.g. jdk1.6.0_24), attention: do not use jdk1.6.0_18 or jdk1.6.0_22!
- check out all projects from your local GIT clone to your Workspace (with EGit plugin)
- build eTrice with our target platform ( target platform )
Getting Started
Setting up Runtime Workspace
- start the runtime workspace: org.eclipse.etrice.core.room.ui -> eTrice-rt.launch (contextmenu -> Run As)
- check out the runtime projects from your local GIT clone
- org.eclipse.etrice.doc.tutorials
- org.eclipse.etrice.modellib
- org.eclipse.etrice.runtime.java
Editing the Model
- the first model you find in org.eclipse.etrice.doc.tutorials/model/scratch/PingPong.room (doubleclick for editor)
- if the room editor has the focus, you can see all your model elements in the outline view
- with a right click on an actor (e.g. MrPingActor) you can
- Edit Structure
- Edit Behavior
- Important: You have to save every "dirty" editor before opening another editor
Code Generator
- org.eclipse.etrice.doc.tutorials -> genAllTutorials.mwe2.launch -> (contextmenu)Run As -> genAllModels.mwe2
- you will find the generated code in org.eclipse.etrice.doc.tutorials/src-gen
Run
- org.eclipse.etrice.doc.tutorials/src-gen/PingPong/SubSystem_PingPongRunner.java -> Run As -> Java Application
- in the View Console you can see the debugging output of the running model
- enter "quit" and <enter> in the Console to stop the running application (you should)