Commit 4d84ccf2 authored by Marco Konersmann's avatar Marco Konersmann

Minor refactoring

parent 1c978b68
......@@ -138,21 +138,18 @@ public abstract class JavaBasedImplementationLanguageDefinition extends Implemen
idRegistry.getRegistryEntries().keySet().stream().forEach(id -> {
try {
final EObject imElement = idRegistry.getImplementationModelElement(id, imRoots);
// If this element has not component model representation, ignore it.
if (imElement == null)
return;
return; // If this element has not implementation model representation, ignore it.
final EObject ialElement = idRegistry.getTranslationModelElement(imElement, tmRoots);
final EObject tmElement = idRegistry.getTranslationModelElement(imElement, tmRoots);
final List<? extends IALTransformation<?, ?>> ialTransformations = createIALTransformationInstance(
imElement);
if (ialTransformations != null)
ialTransformations.stream().forEach(t -> {
try {
IALHolder holder = t.getIALHolder();
t.setIDRegistry(idRegistry);
t.setModelElement(imElement);
holder.setFoundationalIALElement(ialElement);
t.getIALHolder().setFoundationalIALElement(tmElement);
t.transformToModel();
} catch (final Exception ex) {
addError("Could not extract IL information from the code.", ex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment