diff options
author | 2018-11-07 12:50:02 +0100 | |
---|---|---|
committer | 2018-11-07 12:50:02 +0100 | |
commit | ebb8785ae0af45e5a18eed892db641ce5b35ce6b (patch) | |
tree | 3fccd2ca909b20e73ea4eb33f31508eddca5e117 /Framework/hu.bme.mit.inf.dslreasoner.logic2ecore/src/hu/bme/mit/inf | |
parent | Logic structure builder fix for string building (diff) | |
download | VIATRA-Generator-ebb8785ae0af45e5a18eed892db641ce5b35ce6b.tar.gz VIATRA-Generator-ebb8785ae0af45e5a18eed892db641ce5b35ce6b.tar.zst VIATRA-Generator-ebb8785ae0af45e5a18eed892db641ce5b35ce6b.zip |
Fixed xmi generation with attributes. Added better error messages.
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic2ecore/src/hu/bme/mit/inf')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic2ecore/src/hu/bme/mit/inf/dslreasoner/logic2ecore/Logic2Ecore.xtend | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic2ecore/src/hu/bme/mit/inf/dslreasoner/logic2ecore/Logic2Ecore.xtend b/Framework/hu.bme.mit.inf.dslreasoner.logic2ecore/src/hu/bme/mit/inf/dslreasoner/logic2ecore/Logic2Ecore.xtend index c7e14362..92deeae6 100644 --- a/Framework/hu.bme.mit.inf.dslreasoner.logic2ecore/src/hu/bme/mit/inf/dslreasoner/logic2ecore/Logic2Ecore.xtend +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic2ecore/src/hu/bme/mit/inf/dslreasoner/logic2ecore/Logic2Ecore.xtend | |||
@@ -91,7 +91,11 @@ class Logic2Ecore { | |||
91 | val list = sourceObject.eGet(attributeType) as List<? super Object> | 91 | val list = sourceObject.eGet(attributeType) as List<? super Object> |
92 | list += l.key | 92 | list += l.key |
93 | } else { | 93 | } else { |
94 | sourceObject.eSet(attributeType,l) | 94 | try { |
95 | sourceObject.eSet(attributeType,l.key) | ||
96 | } catch(Exception e) { | ||
97 | e.printStackTrace | ||
98 | } | ||
95 | } | 99 | } |
96 | } | 100 | } |
97 | } | 101 | } |