eclipse-qvto / org.eclipse.qvto

Eclipse Public License 2.0
0 stars 0 forks source link

No support for text/code templates. #648

Open eclipse-qvt-oml-bot opened 9 hours ago

eclipse-qvt-oml-bot commented 9 hours ago

| --- | --- | | Bugzilla Link | 396537 | | Status | NEW | | Importance | P3 normal | | Reported | Dec 13, 2012 15:07 EDT | | Modified | Sep 08, 2014 05:22 EDT | | Reporter | Toni Siljamäki |

Description

Created attachment 224684\ Example of a larger-scaling-up support in real-world projects.

There is no support for target model pre-population using text/code templates.\ There are some ”pattern matching templates” for QVT Relations,\ but that is something completely different.

Such templates (possibly adaptable) can be used for pre-populating\ target model objects with code fragments, a process which can be\ guided e.g. by marks in best MDA-style. (see MDA Distilled)

Model translation can be a long chain of M2M steps, ending with an M2T step,\ where certain decisions related to the final code are taken during certain steps.

Example: Some decicions are make during the population of the Platform\ Specific Model (PSM), some other decisions are made during the population\ of some Deployment Model, while other decicions are made when populating\ e.g. a target programming language model.

By having this support for target model pre-population using text/code templates\ there is no need to postpone ALL decisions that has to do with the production of\ the final target code all the way downto to the M2T step.

Attached is an example (with some animations) on the translation flow for\ Executable UML model translation, showing where target model pre-population\ fits into the transformation process. Such support would be highly appreciated\ by users also for EMF based models.

There will be a separate/additional Bugzilla report on support for templates during M2T.

:compression: Error_04_NoCodeTemplateSupport.zip

eclipse-qvt-oml-bot commented 9 hours ago

By Ed Willink on Dec 13, 2012 15:24

It is unlikely that any change will occur before migration to Xtext at which point templates will be supported.

eclipse-qvt-oml-bot commented 9 hours ago

By Toni Siljamäki on Dec 14, 2012 10:03

Sounds promising.\ Will be interseting to see your comments on my last Bugzilla.

eclipse-qvt-oml-bot commented 9 hours ago

By Toni Siljamäki on Sep 08, 2014 05:22

Short questions: 1) Has QVTo been fully migrated to Xtext, and if so... 2) Does it now support templates?