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/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend | |
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/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend deleted file mode 100644 index db89ebf9..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.naming | ||
2 | |||
3 | import com.google.inject.Inject | ||
4 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition | ||
6 | import org.eclipse.emf.ecore.EObject | ||
7 | import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider | ||
8 | |||
9 | class CftLanguageQualifiedNameProvider extends DefaultDeclarativeQualifiedNameProvider { | ||
10 | @Inject PackageNameProvider packageNameProvider | ||
11 | |||
12 | def qualifiedName(ComponentDefinition componentDefinition) { | ||
13 | computePackageQualifiedName(componentDefinition, componentDefinition.name) | ||
14 | } | ||
15 | |||
16 | def qualifiedName(TransformationDefinition transformationDefinition) { | ||
17 | computePackageQualifiedName(transformationDefinition, transformationDefinition.name) | ||
18 | } | ||
19 | |||
20 | private def computePackageQualifiedName(EObject eObj, String name) { | ||
21 | if (name === null) { | ||
22 | return null | ||
23 | } | ||
24 | val packageQualifier = packageNameProvider.getPackageName(eObj) | ||
25 | packageQualifier.append(name) | ||
26 | } | ||
27 | } | ||