开发者

how to load a web start application into eclipse rcp

开发者 https://www.devze.com 2023-01-19 19:07 出处:网络
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 c

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 开发者_StackOverflow社区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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消