引数は、表示したいWEBページのURL
private void openWeb(String url) {
private void openWeb(String url) {
IWorkbenchBrowserSupport bs = PlatformUI.getWorkbench()
.getBrowserSupport();
IWebBrowser browser;
try {
browser = bs.createBrowser(IWorkbenchBrowserSupport.LOCATION_BAR
| IWorkbenchBrowserSupport.NAVIGATION_BAR
| IWorkbenchBrowserSupport.AS_EDITOR, "ブラウザID", "タブ名", "ツールチップ");
System.out.println();
browser.openURL(new URL(
url ));
} catch (PartInitException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
e.printStackTrace();
}
}