开发者

How to open a External browser in Eclipse Editor

How to open an External browser like 开发者_运维问答Safari from open option with in Eclipse plugin programmaticly?


try {
    PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL("http://stackoverflow.com"));
} catch (PartInitException | MalformedURLException e) {
    e.printStackTrace();
}

This will open the external browser.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜