diff options
author | Henrik Rentz-Reichert | 2012-11-15 10:08:54 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2012-11-15 10:08:54 +0000 |
commit | b1aca8dadc5d3a6fc5db844f2870cd946b08816f (patch) | |
tree | 45e3741a71808206e8d2ecfd4f176460d4954e76 /tests/org.eclipse.etrice.generator.fsmtest.tests | |
parent | 0d1b981066089099fe4abb82264ac3c1ba9d51b4 (diff) | |
download | org.eclipse.etrice-b1aca8dadc5d3a6fc5db844f2870cd946b08816f.tar.gz org.eclipse.etrice-b1aca8dadc5d3a6fc5db844f2870cd946b08816f.tar.xz org.eclipse.etrice-b1aca8dadc5d3a6fc5db844f2870cd946b08816f.zip |
[generator.fsmtest] grammar, change and copyright notes added
Diffstat (limited to 'tests/org.eclipse.etrice.generator.fsmtest.tests')
3 files changed, 89 insertions, 61 deletions
diff --git a/tests/org.eclipse.etrice.generator.fsmtest.tests/about.html b/tests/org.eclipse.etrice.generator.fsmtest.tests/about.html new file mode 100644 index 000000000..f47dbddbb --- /dev/null +++ b/tests/org.eclipse.etrice.generator.fsmtest.tests/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2006</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
\ No newline at end of file diff --git a/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestInjectorProvider.java b/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestInjectorProvider.java index 246fa2601..421bd31db 100644 --- a/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestInjectorProvider.java +++ b/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestInjectorProvider.java @@ -1,45 +1,45 @@ -/*
-* generated by Xtext
-*/
-package org.eclipse.etrice.generator;
-
-import org.eclipse.xtext.junit4.GlobalRegistries;
-import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento;
-import org.eclipse.xtext.junit4.IInjectorProvider;
-import org.eclipse.xtext.junit4.IRegistryConfigurator;
-
-import com.google.inject.Injector;
-
-public class FSMtestInjectorProvider implements IInjectorProvider, IRegistryConfigurator {
-
- protected GlobalStateMemento stateBeforeInjectorCreation;
- protected GlobalStateMemento stateAfterInjectorCreation;
- protected Injector injector;
-
- static {
- GlobalRegistries.initializeDefaults();
- }
-
- public Injector getInjector()
- {
- if (injector == null) {
- stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
- this.injector = internalCreateInjector();
- stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
- }
- return injector;
- }
-
- protected Injector internalCreateInjector() {
- return new FSMtestStandaloneSetup().createInjectorAndDoEMFRegistration();
- }
-
- public void restoreRegistry() {
- stateBeforeInjectorCreation.restoreGlobalState();
- }
-
- public void setupRegistry() {
- getInjector();
- stateAfterInjectorCreation.restoreGlobalState();
- }
-}
+/* +* generated by Xtext +*/ +package org.eclipse.etrice.generator; + +import org.eclipse.xtext.junit4.GlobalRegistries; +import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento; +import org.eclipse.xtext.junit4.IInjectorProvider; +import org.eclipse.xtext.junit4.IRegistryConfigurator; + +import com.google.inject.Injector; + +public class FSMtestInjectorProvider implements IInjectorProvider, IRegistryConfigurator { + + protected GlobalStateMemento stateBeforeInjectorCreation; + protected GlobalStateMemento stateAfterInjectorCreation; + protected Injector injector; + + static { + GlobalRegistries.initializeDefaults(); + } + + public Injector getInjector() + { + if (injector == null) { + stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); + this.injector = internalCreateInjector(); + stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); + } + return injector; + } + + protected Injector internalCreateInjector() { + return new FSMtestStandaloneSetup().createInjectorAndDoEMFRegistration(); + } + + public void restoreRegistry() { + stateBeforeInjectorCreation.restoreGlobalState(); + } + + public void setupRegistry() { + getInjector(); + stateAfterInjectorCreation.restoreGlobalState(); + } +} diff --git a/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestUiInjectorProvider.java b/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestUiInjectorProvider.java index 6798d9806..802290b22 100644 --- a/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestUiInjectorProvider.java +++ b/tests/org.eclipse.etrice.generator.fsmtest.tests/src-gen/org/eclipse/etrice/generator/FSMtestUiInjectorProvider.java @@ -1,16 +1,16 @@ -/*
-* generated by Xtext
-*/
-package org.eclipse.etrice.generator;
-
-import org.eclipse.xtext.junit4.IInjectorProvider;
-
-import com.google.inject.Injector;
-
-public class FSMtestUiInjectorProvider implements IInjectorProvider {
-
- public Injector getInjector() {
- return org.eclipse.etrice.generator.ui.internal.FSMtestActivator.getInstance().getInjector("org.eclipse.etrice.generator.FSMtest");
- }
-
-}
+/* +* generated by Xtext +*/ +package org.eclipse.etrice.generator; + +import org.eclipse.xtext.junit4.IInjectorProvider; + +import com.google.inject.Injector; + +public class FSMtestUiInjectorProvider implements IInjectorProvider { + + public Injector getInjector() { + return org.eclipse.etrice.generator.ui.internal.FSMtestActivator.getInstance().getInjector("org.eclipse.etrice.generator.FSMtest"); + } + +} |