简体   繁体   English

从 eclipse sirius 生成源代码

[英]Generate source code from eclipse sirius

Using eclipse Sirius, we can create our own graphical modeling workbench.使用 eclipse Sirius,我们可以创建自己的图形建模工作台。

I read about Sirius tutorials from the following link.我从以下链接阅读了 Sirius 教程。

https://wiki.eclipse.org/Sirius/Tutorials/StarterTutorial https://wiki.eclipse.org/Sirius/Tutorials/StarterTutorial

After completing the above tutorial, I got xml file that is related to my sirius editor.完成上述教程后,我得到了与我的 Sirius 编辑器相关的 xml 文件。

The question is how can I export soruce code or project from sirius xml file?问题是如何从 Sirius xml 文件中导出源代码或项目?

There is no need to generate any source code for your modeler defined with Sirius.无需为使用 Sirius 定义的建模器生成任何源代码。 The "XML file" (the one with the .odesign extension) is your modeler's definition. “XML 文件”(扩展名为.odesign文件)建模者的定义。 It is interpreted dynamically by Sirius, no Java code is generated from it.它由 Sirius 动态解释,不会从中生成 Java 代码。 Once you have your modeler's definition, if you want to distribute it to your users you simply have to package it as a proper Eclipse plug-in.获得建模者的定义后,如果要将其分发给用户,只需将其打包为适当的 Eclipse 插件即可。https://wiki.eclipse.org/Sirius/Tutorials/UpdateSiteTutorial describes the steps needed for this if you're not familiar with Eclipse plug-in development.https://wiki.eclipse.org/Sirius/Tutorials/UpdateSiteTutorial描述了如果您不熟悉 Eclipse 插件开发所需的步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM