2010-10-06 197 views

回答

0

窗口/顯示視圖/其他然後選擇「內部Web瀏覽器」

0

如果你正在開發一個Eclipse插件,試試這個:

int style = IWorkbenchBrowserSupport.AS_EDITOR | IWorkbenchBrowserSupport.LOCATION_BAR | IWorkbenchBrowserSupport.STATUS; 
IWebBrowser browser = WorkbenchBrowserSupport.getInstance().createBrowser(style, "MyBrowserID", "MyBrowserName", "MyBrowser Tooltip"); 
browser.openURL(new URL("http://www.google.com")); 

來源:http://blog.roweware.com/2007/07/24/open-url-in-eclipse/

+0

PlatformUI.getWorkbench()getBrowserSupport()createBrowser()。 – user1495323 2015-10-07 18:41:21