diff options
author | 2019-08-01 14:49:53 +0200 | |
---|---|---|
committer | 2019-08-01 14:49:53 +0200 | |
commit | 972baab642bd889d2c3476c0c9e17a6929e0c318 (patch) | |
tree | 8f724cb348c60e4fc45d446d8532988ed8e40748 /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java | |
parent | Counting scope propagator (simpler than BasicTypeHierarchy) (diff) | |
download | VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.gz VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.zst VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.zip |
[Stochastic] Remove fault tree support for now
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java deleted file mode 100644 index 75f38b14..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components; | ||
5 | |||
6 | import com.google.inject.Guice; | ||
7 | import com.google.inject.Injector; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | import org.eclipse.emf.ecore.resource.Resource; | ||
11 | import org.eclipse.xtext.ISetup; | ||
12 | import org.eclipse.xtext.common.TerminalsStandaloneSetup; | ||
13 | import org.eclipse.xtext.resource.IResourceFactory; | ||
14 | import org.eclipse.xtext.resource.IResourceServiceProvider; | ||
15 | |||
16 | @SuppressWarnings("all") | ||
17 | public class CftLanguageStandaloneSetupGenerated implements ISetup { | ||
18 | |||
19 | @Override | ||
20 | public Injector createInjectorAndDoEMFRegistration() { | ||
21 | TerminalsStandaloneSetup.doSetup(); | ||
22 | |||
23 | Injector injector = createInjector(); | ||
24 | register(injector); | ||
25 | return injector; | ||
26 | } | ||
27 | |||
28 | public Injector createInjector() { | ||
29 | return Guice.createInjector(new CftLanguageRuntimeModule()); | ||
30 | } | ||
31 | |||
32 | public void register(Injector injector) { | ||
33 | if (!EPackage.Registry.INSTANCE.containsKey("http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage")) { | ||
34 | EPackage.Registry.INSTANCE.put("http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage", CftLanguagePackage.eINSTANCE); | ||
35 | } | ||
36 | IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); | ||
37 | IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); | ||
38 | |||
39 | Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("cft", resourceFactory); | ||
40 | IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("cft", serviceProvider); | ||
41 | } | ||
42 | } | ||