[英]Eclipse: what's the proper way to export a plugin as a product?
I created an eclipse product based on a plugin. 我创建了一个基于插件的日食产品。
from the product pane: 在产品窗格中:
left side, pressing "Launch an eclipse application" invokes a new eclipse platform that is only able to create an empty project or a project based on my plugin (no java project, etc...). 左侧,按“启动eclipse应用程序”会调用一个新的eclipse平台,该平台只能创建一个空项目或基于我的插件的项目(无Java项目等)。 OK that is what I want.
好,那是我想要的。
right side: I've exported my product in a fresh empty directory. 右侧:我已经将产品导出到新的空目录中。 When I run my application from the command-line, I'm asked to open a new workspace and then, I only get an empty window .
从命令行运行应用程序时,系统要求我打开一个新的工作区,然后才得到一个空窗口。
what's the proper way to export my application ? 导出我的应用程序的正确方法是什么?
Thxs 特克斯
Check your product configuration: go to the "dependencies" tab and press the "Add Required" button. 检查您的产品配置:转到“依赖项”选项卡,然后按“添加必需项”按钮。
If you would like to export your plugin (product) as a standalone application(just create a build) I would recommend you to take a look at the Tycho ( http://eclipse.org/tycho/ ). 如果您想将插件(产品)导出为独立的应用程序(只需创建一个构建),我建议您看一下Tycho( http://eclipse.org/tycho/ )。 Tycho tutorial: http://www.vogella.com/articles/EclipseTycho/article.html .
第谷教程: http : //www.vogella.com/articles/EclipseTycho/article.html 。
The reason your export doesn't work is that you select org.eclipse.ui.ide.workbench. 导出不起作用的原因是您选择了org.eclipse.ui.ide.workbench。 When you generated your EMF code as RCP.
当您将EMF代码生成为RCP时。 (This is an option in the .genmodel under Editor->Rich Client Plarform) you should get an application for the RCP.
(这是.genmodel中“编辑器”->“富客户端Plarform”下的一个选项),您应该获得RCP的应用程序。 When you select this application in your .product, all will be fine.
当您在.product中选择此应用程序时,一切都会好的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.