如何通过Papyrus在Eclipse上生成代码? [英] How to generate code by Papyrus on Eclipse?

查看:867
本文介绍了如何通过Papyrus在Eclipse上生成代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将纸莎草布安装在此处。那么如何使用Papyrus生成代码?

I install Papyrus at here. So how to generate code using Papyrus ?

推荐答案

为了在Eclipse建模环境中生成来自UML模型的任何文本工件纸莎草纸,TopCased等),您应该使用 Acceleo ,这是一个 eclipse实现的MOF模型到文本转换语言, OMG标准语言用于文本转换的模型。
这是一个非常好的技术,但是如果您不知道 MOF 和模型驱动架构。
这篇文章提供一个很好的教程。

In order to generate any text artifacts from UML models in the Eclipse Modelling Environment (i.e. Papyrus, TopCased, etc.) you should use Acceleo which is an eclipse implementation of the MOF models to text transformation language, the OMG standard language for models to text transformations. It is a very well made technology but it could take some time to become familiar with it especially if you do not know MOF and the Model Driven Architecture. This post provides a good tutorial.

QVT是另一种OMG语言,但其目标是模型转换(而不是文本模型)。因此,您的问题不是正确的答案。

QVT is another OMG language but its aim is models to models transformations (not models to text). It is therefore not the right answer to your question.

这篇关于如何通过Papyrus在Eclipse上生成代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆