Java 类org.eclipse.ui.internal.browser.WorkbenchBrowserSupport 实例源码

项目:velocity-edit    文件:VelocityEditor.java   
private void openBrowser(String url)
{
  try
  {
    IWebBrowser browser = WorkbenchBrowserSupport.getInstance()
      .createBrowser(0, "MyBrowserID", "MyBrowserName", "MyBrowser Tooltip");
    browser.openURL(new URL(url));     
   }
  catch (Exception e)
  {
    System.out.println(e);
  }      
}