如何将 Web 启动应用程序加载到 Eclipse RCP 中
我有一个 Webstart Apps/jnlp,我想将其添加到已经制作的 rcp 客户端中。我可以将 Web Start 应用程序集成到 RCP 中,这样它将出现在菜单工具栏下,这样如果单击它,它将加载该应用程序。如果是这样,我将如何做到这一点,是否需要将其作为插件放入 -在?
感谢您的帮助!
I have a Webstart Apps/jnlp in which I would like to add into an already made rcp client. Can I integrate the web start application into the RCP so it will appear under the menu toolbar so if it was clicked it will load ithe application.If so How will I go about doing that, would it need to be place into as a plug-in?
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看Lars Vogel 的本教程,用于了解如何在 Eclipse RCP 中使用命令(并从菜单启用命令执行)。
然后,在命令处理程序中,编写打开 Web 浏览器的代码,并将应用程序的 url 作为参数传递:
另外,请查看 此链接 了解有关 Eclipse RCP 浏览器支持的更多信息。由于您没有指定是否希望使用内部浏览器或外部浏览器打开它,因此您可能需要调整我发布的代码。
Check out this tutorial by Lars Vogel to learn how to use commands in Eclipse RCP (and enable command execution from menus).
Then, in your command handler, write the code that opens the web browser with the url of your application passed as parameter:
Also, check out this link to learn more about Eclipse RCP browser support. Since you didn't specify whether you want this to be opened with an internal or an external browser, you might want to tweak the code I posted.