diff options
author | 2018-05-08 17:03:07 +0200 | |
---|---|---|
committer | 2018-05-08 17:03:07 +0200 | |
commit | 4585a4d344da5498200548e7add61e5cccd44924 (patch) | |
tree | 3a030bea39db36db43d97b62124f6c2a7db111a7 /Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend | |
parent | Updated and fixed dependencies: (diff) | |
download | VIATRA-Generator-4585a4d344da5498200548e7add61e5cccd44924.tar.gz VIATRA-Generator-4585a4d344da5498200548e7add61e5cccd44924.tar.zst VIATRA-Generator-4585a4d344da5498200548e7add61e5cccd44924.zip |
Refactored to the milestone version of Viatra 2.0
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend index 0da42e0f..e458267c 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend | |||
@@ -10,24 +10,21 @@ import org.eclipse.emf.common.util.URI | |||
10 | import org.eclipse.emf.ecore.resource.Resource | 10 | import org.eclipse.emf.ecore.resource.Resource |
11 | import org.eclipse.emf.ecore.resource.ResourceSet | 11 | import org.eclipse.emf.ecore.resource.ResourceSet |
12 | import org.eclipse.emf.ecore.util.EcoreUtil | 12 | import org.eclipse.emf.ecore.util.EcoreUtil |
13 | import org.eclipse.viatra.query.patternlanguage.PatternLanguageStandaloneSetup | ||
14 | import org.eclipse.viatra.query.patternlanguage.annotations.ExtensionBasedAnnotationValidatorLoader | ||
15 | import org.eclipse.viatra.query.patternlanguage.annotations.IAnnotationValidatorLoader | ||
16 | import org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageRuntimeModule | 13 | import org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageRuntimeModule |
17 | import org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageStandaloneSetup | 14 | import org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageStandaloneSetup |
18 | import org.eclipse.viatra.query.patternlanguage.emf.GenmodelExtensionLoader | 15 | import org.eclipse.viatra.query.patternlanguage.emf.GenmodelExtensionLoader |
19 | import org.eclipse.viatra.query.patternlanguage.emf.IGenmodelMappingLoader | 16 | import org.eclipse.viatra.query.patternlanguage.emf.IGenmodelMappingLoader |
20 | import org.eclipse.viatra.query.patternlanguage.emf.eMFPatternLanguage.PatternModel | ||
21 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.CompoundMetamodelProviderService | 17 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.CompoundMetamodelProviderService |
22 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.IMetamodelProvider | 18 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.IMetamodelProvider |
23 | import org.eclipse.viatra.query.patternlanguage.emf.specification.SpecificationBuilder | 19 | import org.eclipse.viatra.query.patternlanguage.emf.specification.SpecificationBuilder |
20 | import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternModel | ||
24 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification | 21 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification |
25 | import org.eclipse.xtext.resource.XtextResourceSet | 22 | import org.eclipse.xtext.resource.XtextResourceSet |
26 | 23 | ||
27 | class MyModule extends EMFPatternLanguageRuntimeModule implements Module { | 24 | class MyModule extends EMFPatternLanguageRuntimeModule implements Module { |
28 | def public Class<? extends IAnnotationValidatorLoader> bindAnnotationValidatorLoader() { | 25 | // override public Class<? extends IAnnotationValidatorLoader> bindAnnotationValidatorLoader() { |
29 | return typeof(ExtensionBasedAnnotationValidatorLoader); | 26 | // return typeof(ExtensionBasedAnnotationValidatorLoader); |
30 | } | 27 | // } |
31 | def public Class<? extends IGenmodelMappingLoader> bindGenmodelMappingLoader() { | 28 | def public Class<? extends IGenmodelMappingLoader> bindGenmodelMappingLoader() { |
32 | return typeof(GenmodelExtensionLoader); | 29 | return typeof(GenmodelExtensionLoader); |
33 | } | 30 | } |
@@ -42,7 +39,6 @@ class VQLParser { | |||
42 | val SpecificationBuilder builder = new SpecificationBuilder | 39 | val SpecificationBuilder builder = new SpecificationBuilder |
43 | 40 | ||
44 | new() { | 41 | new() { |
45 | PatternLanguageStandaloneSetup.doSetup | ||
46 | EMFPatternLanguageStandaloneSetup.doSetup; | 42 | EMFPatternLanguageStandaloneSetup.doSetup; |
47 | 43 | ||
48 | injector = internalCreateInjector | 44 | injector = internalCreateInjector |