在eclipse之外部署rcp应用程序的有效方法

发布于 2024-10-05 07:23:14 字数 237 浏览 0 评论 0原文

各位, 我想知道是否有任何最佳实践或有效方法可以在 eclipse IDE 之外部署一组 eclipse osgi 包(使用 eclipse RCP 开发)。到目前为止,我们正在使用手写脚本部署插件,但此过程容易出错且耗时。我发现了 eclipse 提供的“插件开发 -> 产品配置”方法,但老实说我无法让它工作:特别是我无法理解什么是产品应用程序的正确选择。我尝试使用 org.eclipse.ui.ide.workbench 但在导出过程中出现错误。

Dear all,
I would like to know if there is any best practice or effective way to deploy a set of eclipse osgi bundles (developed with eclipse RCP) outside the eclipse IDE. Up to now we are deploying the plugins with hand-written scripts but this procedure is error prone and time consuming. I discovered the "Plug-In Development -> Product Configuration" approach offered by eclipse but honestly I cannot get it working: in particular I cannot understand what is the correct choice for the Product Application. I tried with org.eclipse.ui.ide.workbench but I got errors during the export procedure.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌伤浅笑 2024-10-12 07:23:14

您创建了应用程序类吗?这个类应该启动工作台并启动您的 RCP 应用程序。 此处解释了应用程序和产品之间的区别。

最简单的方法是创建一个新的“Hello RCP”插件项目(请参阅前面的链接),而不是从头开始创建 Application 类,这为您提供了一个基本的工作 RCP 应用程序。这将为您提供其他插件可以贡献的工作台。

这为您提供了在导出产品时可供选择的产品应用程序。像您一样选择“org.eclipse.ui.ide.workbench”将尝试将 Eclipse IDE 及其所有插件导出为新的 RCP 应用程序,这可能不是您想要做的。

Have you created an Application class? This is the class that should fire up the Workbench and start your RCP app. The difference between an application and a product is explained here.

Rather than create your Application class from scratch, the easiest way to do it is to create a new "Hello RCP" plug-in project (see previous link), which gives you a basic working RCP app. This will give you the workbench to which your other plug-ins can contribute.

This gives you a product application to select when exporting your product. Choosing "org.eclipse.ui.ide.workbench" as you did will try to export the Eclipse IDE with all its plug-ins as a new RCP app, which is probably not what you want to do.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文