Skip to content
Snippets Groups Projects
Commit 1d7f6461 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

fixed platform architecture transformation algorithm

refs 136
parent c5d3c227
No related branches found
No related tags found
No related merge requests found
......@@ -75,4 +75,22 @@ public final class TransformationUtils {
}
};
}
/**
* Searches a transformation chain for the given model element and the
* target class and returns the transformation result. This method returns
* <code>null</code> if the transformation failed. The exception is
* suppressed.
*/
public static <T extends Object> T createTransformedObjectWithoutExceptionFor(
final EObject modelElement, final Class<T> targetClass,
ITransformationContext context) {
try {
T result = createTransformedObjectFor(modelElement, targetClass,
context);
return result;
} catch (ChainTransformationFailedException ctfe) {
return null;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment