Open eclipse-uml2-bot opened 1 week ago
By Kenn Hussey on Dec 15, 2017 11:05
Thanks for the contribution, Vincent! I'll take a look and get back to you soon with my feedback.
By Kenn Hussey on Dec 15, 2017 13:11
I took a brief look at the patch and have a question. Seeing as the converter already converts templates and their parameters, is the intent of your changes to add support for expanding template bindings, similar to what is already provided by the UMLUtil#expand(...) methods and underlying TemplateExpander class? If so, I wonder whether there's a way to leverage that existing functionality or perhaps simply provide a new converter option to expand template bindings before doing the conversion...
| --- | --- | | Bugzilla Link | 528788 | | Status | NEW | | Importance | P3 enhancement | | Reported | Dec 14, 2017 11:05 EDT | | Modified | Dec 30, 2017 13:06 EDT | | Reporter | Vincent Lorenzo |
Description
Created attachment 271914\ a draft to support TemplateBinding from UML 2 Ecore
Developing the Expressions Framework in papyrus (org.eclipse.papyrus.infra.emf.expressions), we create a UML Class Diagram, then we generate java code using UML2Ecore tooling. We noticed that the UML Template are not managed by the class UML2EcoreConverter.
We patch it to answer to our current usecase, but we know it doesn't yet support all the cases defined in the UML Norm. I attach this patch to this bug, but we think it should be considered as a draft and not as a final implementation.
code-to-manage-template-bindings.patch