如何将 Web 启动应用程序加载到 Eclipse RCP 中

发布于 2024-09-27 04:13:20 字数 162 浏览 0 评论 0原文

我有一个 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 技术交流群。

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

发布评论

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

评论(1

中二柚 2024-10-04 04:13:20

查看Lars Vogel 的本教程,用于了解如何在 Eclipse RCP 中使用命令(并从菜单启用命令执行)。

然后,在命令处理程序中,编写打开 Web 浏览器的代码,并将应用程序的 url 作为参数传递:

//Assuming 'url' is the url of your application
PlatformUI.getWorkbench().getBrowserSupport().createBrowser(null).openURL(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:

//Assuming 'url' is the url of your application
PlatformUI.getWorkbench().getBrowserSupport().createBrowser(null).openURL(url);

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.

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