From 6af5c7f18c078e42157f7d4db685f09e94208d7d Mon Sep 17 00:00:00 2001 From: Henrik Rentz-Reichert Date: Mon, 17 Oct 2011 11:27:12 +0200 Subject: [tutorials] fixed import statements, converted project to plain Java --- examples/org.eclipse.etrice.tutorials/.classpath | 1 - examples/org.eclipse.etrice.tutorials/.project | 11 ----------- .../META-INF/MANIFEST.MF | 15 --------------- .../gen_org.eclipse.etrice.tutorials.launch | 22 +++++++++++----------- .../model/Blinky/Blinky.room | 8 +++++--- .../model/scratch/PingPong.room | 2 +- 6 files changed, 17 insertions(+), 42 deletions(-) delete mode 100644 examples/org.eclipse.etrice.tutorials/META-INF/MANIFEST.MF (limited to 'examples/org.eclipse.etrice.tutorials') diff --git a/examples/org.eclipse.etrice.tutorials/.classpath b/examples/org.eclipse.etrice.tutorials/.classpath index 18304f00e..f690d2878 100644 --- a/examples/org.eclipse.etrice.tutorials/.classpath +++ b/examples/org.eclipse.etrice.tutorials/.classpath @@ -1,7 +1,6 @@ - diff --git a/examples/org.eclipse.etrice.tutorials/.project b/examples/org.eclipse.etrice.tutorials/.project index 7c0da6ca3..ebf1994f5 100644 --- a/examples/org.eclipse.etrice.tutorials/.project +++ b/examples/org.eclipse.etrice.tutorials/.project @@ -10,16 +10,6 @@ - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - org.eclipse.xtext.ui.shared.xtextBuilder @@ -32,7 +22,6 @@ - org.eclipse.pde.PluginNature org.eclipse.jdt.core.javanature org.eclipse.xtext.ui.shared.xtextNature org.eclipse.xtend.shared.ui.xtendXPandNature diff --git a/examples/org.eclipse.etrice.tutorials/META-INF/MANIFEST.MF b/examples/org.eclipse.etrice.tutorials/META-INF/MANIFEST.MF deleted file mode 100644 index f92677694..000000000 --- a/examples/org.eclipse.etrice.tutorials/META-INF/MANIFEST.MF +++ /dev/null @@ -1,15 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Tutorials -Bundle-SymbolicName: org.eclipse.etrice.tutorials -Bundle-Version: 0.1.0.qualifier -Require-Bundle: org.eclipse.etrice.generator.java;bundle-version="0.1.0", - org.eclipse.etrice.generator;bundle-version="0.1.0", - org.eclipse.etrice.modellib;bundle-version="0.1.0", - org.eclipse.jface.text;bundle-version="3.6.0", - org.eclipse.jdt.core;bundle-version="3.6.0", - org.eclipse.xtend.util.stdlib;bundle-version="1.0.0", - org.eclipse.core.runtime;bundle-version="3.6.0", - org.eclipse.xtext.generator;bundle-version="1.0.0" -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Bundle-Vendor: eTrice (Incubation) diff --git a/examples/org.eclipse.etrice.tutorials/gen_org.eclipse.etrice.tutorials.launch b/examples/org.eclipse.etrice.tutorials/gen_org.eclipse.etrice.tutorials.launch index 6d27fa40c..70aa84691 100644 --- a/examples/org.eclipse.etrice.tutorials/gen_org.eclipse.etrice.tutorials.launch +++ b/examples/org.eclipse.etrice.tutorials/gen_org.eclipse.etrice.tutorials.launch @@ -1,14 +1,14 @@ - - - + + + + + + + + + - - - - - - - - + + diff --git a/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room b/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room index 6a1c77b71..dec2906db 100644 --- a/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room +++ b/examples/org.eclipse.etrice.tutorials/model/Blinky/Blinky.room @@ -1,12 +1,14 @@ RoomModel Blinky { + import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib/models/TimingService.room" + LogicalSystem System_Blinky { SubSystemRef subsystem: SubSystem_Blinky } SubSystemClass SubSystem_Blinky { ActorRef application: BlinkyTop - ActorRef timingService: room.basic.service.timing.ATimingService + ActorRef timingService: ATimingService LayerConnection ref application satisfied_by timingService.timer LayerConnection ref application satisfied_by timingService.timeout } @@ -34,7 +36,7 @@ RoomModel Blinky { "private TrafficLight2 pedLights;" } external Port ControlPort - SAP timer: room.basic.service.timing.PTimeout + SAP timer: PTimeout } Behavior { Operation destroyUser() { @@ -103,7 +105,7 @@ RoomModel Blinky { } Structure { external Port ControlPort - SAP timer: room.basic.service.timing.PTimeout + SAP timer: PTimeout } Behavior { StateMachine { diff --git a/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room b/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room index bdd82520e..ec42cc43e 100644 --- a/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room +++ b/examples/org.eclipse.etrice.tutorials/model/scratch/PingPong.room @@ -1,6 +1,6 @@ RoomModel PingPong { - import room.basic.service.timing.* + import room.basic.service.timing.* from "../../../org.eclipse.etrice.modellib/models/TimingService.room" LogicalSystem System_PingPong { SubSystemRef subsystem: SubSystem_PingPong -- cgit v1.2.3