Java 类org.eclipse.ui.browser.IWebBrowser 实例源码

项目:egradle    文件:OpenInExternalBrowserAction.java   
@Override
public void run() {
    if (target==null){
        return;
    }
    try {
        URL url = new URL(target);
        // Open default external browser
        IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
        IWebBrowser externalBrowser = browserSupport.getExternalBrowser();
        externalBrowser.openURL(url);

    } catch (Exception ex) {
        EditorUtil.INSTANCE.logError("Was not able to open url in external browser", ex);
    }
}
项目:bts    文件:OpenBrowserUtil.java   
private static void internalOpen(final URL url, final boolean useExternalBrowser) {
    BusyIndicator.showWhile(null, new Runnable() {
        public void run() {
            URL helpSystemUrl= PlatformUI.getWorkbench().getHelpSystem().resolve(url.toExternalForm(), true);
            try {
                IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
                IWebBrowser browser;
                if (useExternalBrowser)
                    browser= browserSupport.getExternalBrowser();
                else
                    browser= browserSupport.createBrowser(null);
                browser.openURL(helpSystemUrl);
            } catch (PartInitException ex) {
            }
        }
    });
}
项目:APICloud-Studio    文件:WorkbenchBrowserUtil.java   
/**
 * Opens an URL with the default settings (which will typically open in an internal browser with no toolbar/url
 * bar/etc).
 * 
 * @param url
 * @return
 */
public static IWebBrowser openURL(String url)
{
    try
    {
        IWorkbenchBrowserSupport workbenchBrowserSupport = PlatformUI.getWorkbench().getBrowserSupport();
        IWebBrowser webBrowser = workbenchBrowserSupport.createBrowser(null);
        if (webBrowser != null)
        {
            webBrowser.openURL(new URL(url));
        }
        return webBrowser;
    }
    catch (Exception e)
    {
        IdeLog.logError(UIPlugin.getDefault(), e);
    }
    return null;
}
项目:Eclipse-Postfix-Code-Completion    文件:OpenBrowserUtil.java   
private static void internalOpen(final URL url, final boolean useExternalBrowser) {
    BusyIndicator.showWhile(null, new Runnable() {
        public void run() {
            URL helpSystemUrl= PlatformUI.getWorkbench().getHelpSystem().resolve(url.toExternalForm(), true);
            if (helpSystemUrl == null) { // can happen if org.eclipse.help.ui is not available
                return; // the resolve() method already wrote "Unable to instantiate help UI" to the log
            }
            try {
                IWorkbenchBrowserSupport browserSupport= PlatformUI.getWorkbench().getBrowserSupport();
                IWebBrowser browser;
                if (useExternalBrowser)
                    browser= browserSupport.getExternalBrowser();
                else
                    browser= browserSupport.createBrowser(null);
                browser.openURL(helpSystemUrl);
            } catch (PartInitException ex) {
                // XXX: show dialog?
                JavaPlugin.logErrorStatus("Opening Javadoc failed", ex.getStatus()); //$NON-NLS-1$
            }
        }
    });
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:OpenBrowserUtil.java   
private static void internalOpen(final URL url, final boolean useExternalBrowser) {
    BusyIndicator.showWhile(null, new Runnable() {
        public void run() {
            URL helpSystemUrl= PlatformUI.getWorkbench().getHelpSystem().resolve(url.toExternalForm(), true);
            if (helpSystemUrl == null) { // can happen if org.eclipse.help.ui is not available
                return; // the resolve() method already wrote "Unable to instantiate help UI" to the log
            }
            try {
                IWorkbenchBrowserSupport browserSupport= PlatformUI.getWorkbench().getBrowserSupport();
                IWebBrowser browser;
                if (useExternalBrowser)
                    browser= browserSupport.getExternalBrowser();
                else
                    browser= browserSupport.createBrowser(null);
                browser.openURL(helpSystemUrl);
            } catch (PartInitException ex) {
                // XXX: show dialog?
                JavaPlugin.logErrorStatus("Opening Javadoc failed", ex.getStatus()); //$NON-NLS-1$
            }
        }
    });
}
项目:FindBug-for-Domino-Designer    文件:BugInfoView.java   
private void openBrowserInEditor(LocationEvent event) {
    URL url;
    try {
        url = new URL(event.location);
    } catch (MalformedURLException ignored) {
        return;
    }
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    try {
        IWebBrowser newBrowser = support.createBrowser(browserId);
        browserId = newBrowser.getId();
        newBrowser.openURL(url);
        return;
    } catch (PartInitException e) {
        FindbugsPlugin.getDefault().logException(e, "Can't open external browser");
    }
}
项目:d-case_editor    文件:OpenUrlHandler.java   
/**
 * Starts the web browser.
 * 
 * @param url the URL to open.
 */
private void startWebBrowser(URL url) {
    IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench()
            .getBrowserSupport();
    if (browserSupport.isInternalWebBrowserAvailable()) {
        try {
            IWebBrowser browser = browserSupport.createBrowser(
                    IWorkbenchBrowserSupport.LOCATION_BAR 
                            | IWorkbenchBrowserSupport.NAVIGATION_BAR
                            | IWorkbenchBrowserSupport.AS_EDITOR,
                    CONST_INTERNAL_BROWSER_ID, CONST_INTERNAL_BROWSER_NAME,
                    CONST_INTERNAL_BROWSER_TOOLTIP);
            browser.openURL(url);
        } catch (PartInitException e) {
            throw new DcaseSystemException(Messages.COMMON_EXCEPTION_partInit, e,
                    MessageTypeImpl.OPEN_URL_CRITICAL_FAILED);
        }
    } else {
        throw new DcaseSystemException(Messages.OpenUrlHandler_4, null,
                MessageTypeImpl.OPEN_URL_CRITICAL_FAILED);
    }
}
项目:angular-eclipse    文件:NgServeJob.java   
@Override
public IStatus runInUIThread(IProgressMonitor monitor) {
    try {
        IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
        IWebBrowser browser = browserSupport.createBrowser(
                IWorkbenchBrowserSupport.LOCATION_BAR | IWorkbenchBrowserSupport.NAVIGATION_BAR, null, null, null);
        browser.openURL(new URL(serverURL));
    } catch (Exception e) {
        return new Status(IStatus.ERROR, AngularCLIPlugin.PLUGIN_ID, AngularCLIMessages.NgServeJob_error, e);
    }
    return Status.OK_STATUS;
}
项目:mesfavoris    文件:ViewInGDriveOperation.java   
private void openInExternalBrowser(URL url) {
    String browserId = "bookmark";
    try {
        IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();

        IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.AS_EXTERNAL, browserId, null,
                null);
        browser.openURL(url);
    } catch (PartInitException e) {
        StatusHelper.logError("Could not open browser", e);
    }

}
项目:mesfavoris    文件:GotoUrlBookmark.java   
private void openInExternalBrowser(URL url) {
    String browserId = "bookmark";
    try {
        IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();

        IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.AS_EXTERNAL, browserId, null,
                null);
        browser.openURL(url);
    } catch (PartInitException e) {
        StatusHelper.logError("Could not open browser", e);
    }

}
项目:mondo-integration    文件:MONDOServerView.java   
private SelectionAdapter createOnlineCollaborationListener(final List list) {
    return new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            Client client = createClient(list);

            String managementURL = getManagementURL(list.getSelection());
            try {
                String rapPath = client.getOnlineCollaborationURL(goldRepositoryText.getText());
                URL u = new URL(managementURL);
                System.out.println(u.getHost());
                String rapURL = u.getProtocol() + "://" + u.getHost() + ":" + u.getPort() + rapPath;
                final IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser(
                        IWorkbenchBrowserSupport.AS_VIEW | IWorkbenchBrowserSupport.NAVIGATION_BAR, null, null,
                        null);
                browser.openURL(new URL(rapURL));
            } catch (Exception e1) {
                String message = "Could not get online collaboration URL from server " + managementURL;
                logger.error(message);
                MessageBox mb = new MessageBox(Display.getCurrent().getActiveShell(), SWT.ICON_ERROR | SWT.OK);
                mb.setText("MONDO server management error");
                mb.setMessage(message);
                mb.open();
            }
        }
    };
}
项目:org.csstudio.display.builder    文件:RCP_JFXRepresentation.java   
@Override
public void openWebBrowser(final String url) throws Exception
{
    final IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport()
              .createBrowser(IWorkbenchBrowserSupport.NAVIGATION_BAR | IWorkbenchBrowserSupport.LOCATION_BAR,
                             "CSS", null, null);
    browser.openURL(new URL(url));
}
项目:gwt-eclipse-plugin    文件:BrowserUtilities.java   
public static IWebBrowser launchBrowser(String targetUrl) throws MalformedURLException, PartInitException {
  Workbench workbench = Workbench.getInstance();
  if (workbench == null) {
    throw new PartInitException("No workbench is available");
  }

  IWorkbenchBrowserSupport browserSupport = workbench.getBrowserSupport();

  URL url = new URL(targetUrl);

  IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.AS_EXTERNAL, null, "GWT", "GWT");
  browser.openURL(url);
  return browser;
}
项目: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);
  }      
}
项目:PDFReporter-Studio    文件:BrowserUtils.java   
/**
 * Launches the browser to open the specified url
 * 
 * @param url
 *          the url to open
 */
public static void openLink(String url) {
    try {
        IWebBrowser browser = JasperReportsPlugin.getDefault().getWorkbench().getBrowserSupport().createBrowser(null);
        browser.openURL(new URL(url));
    } catch (Exception e) {
        UIUtils.showError(e);
    }

}
项目:APICloud-Studio    文件:ShowBrowserEditorAction.java   
public void run(IAction action) {
    try {
        IWorkbenchBrowserSupport workbenchBrowserSupport = PlatformUI.getWorkbench().getBrowserSupport();
        if (workbenchBrowserSupport.isInternalWebBrowserAvailable()) {
            IWebBrowser webBrowser = workbenchBrowserSupport.createBrowser(IWorkbenchBrowserSupport.AS_EDITOR | IWorkbenchBrowserSupport.LOCATION_BAR | IWorkbenchBrowserSupport.NAVIGATION_BAR | IWorkbenchBrowserSupport.STATUS, null, null, null);
            if (webBrowser != null) {
                webBrowser.openURL(null);
            }
        }
    } catch (PartInitException e) {
        IdeLog.logError(BrowserPlugin.getDefault(), e);
    }
}
项目:APICloud-Studio    文件:WorkbenchBrowserUtil.java   
public static IWebBrowser launchExternalBrowser(String url, String browserId)
{
    try
    {
        return launchExternalBrowser(new URL(url), browserId);
    }
    catch (MalformedURLException e)
    {
        IdeLog.logError(UIPlugin.getDefault(), e);
    }
    return null;
}
项目:txtUML    文件:Exporter.java   
/**
 * Opens visualize.html in the default browser
 * 
 * @throws PartInitException
 * @throws MalformedURLException
 */
private void display() throws PartInitException, MalformedURLException {
    // set to use external browser due to internal browser bug
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=501978
    final IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser();
    browser.openURL(Paths.get(target, FILE_TO_OPEN_IN_BROWSER).toUri().toURL());
}
项目:OpenSPIFe    文件:ParameterColumn.java   
@Override
public boolean editOnActivate(ParameterFacet<T> facet, IUndoContext undoContext, TreeItem item, int index) {
    EStructuralFeature feature = facet.getFeature();
    EClassifier type = feature.getEType();
    if (isCheckboxType(type)) {
        Boolean value = (Boolean) facet.getValue();
        boolean newValue = (value == null ? true : !value);
        modify(facet, newValue, undoContext);
        return true;
    }
    if (type == CommonPackage.Literals.EURL) {
        URL url = (URL)facet.getValue();
        if ((url == null) || "".equals(url.toString())) {
            MessageDialog.openInformation(new Shell(), "No URL", "No URL is set");
        } else {
            IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
            try {
                IWebBrowser browser = browserSupport.createBrowser("");
                browser.openURL(url);
            } catch (PartInitException e1) {
                LogUtil.error("Failed to INIT part for opening WebBrowser in URLEditor", e1);
            }
        }
        return false;
    }
    return false;
}
项目:mondo-collab-framework    文件:MONDOServerView.java   
private SelectionAdapter createOnlineCollaborationListener(final List list) {
    return new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            Client client = createClient(list);

            String managementURL = getManagementURL(list.getSelection());
            try {
                String rapPath = client.getOnlineCollaborationURL(goldRepositoryText.getText());
                URL u = new URL(managementURL);
                System.out.println(u.getHost());
                String rapURL = u.getProtocol() + "://" + u.getHost() + ":" + u.getPort() + rapPath;
                final IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser(
                        IWorkbenchBrowserSupport.AS_VIEW | IWorkbenchBrowserSupport.NAVIGATION_BAR, null, null,
                        null);
                browser.openURL(new URL(rapURL));
            } catch (Exception e1) {
                String message = "Could not get online collaboration URL from server " + managementURL;
                logger.error(message);
                MessageBox mb = new MessageBox(Display.getCurrent().getActiveShell(), SWT.ICON_ERROR | SWT.OK);
                mb.setText("MONDO server management error");
                mb.setMessage(message);
                mb.open();
            }
        }
    };
}
项目:translationstudio8    文件:AbstractSelfHelpUI.java   
public void displayURL(String url) throws Exception {
    try {
        IWebBrowser browser = getExternalBrowser();
        if (browser != null) {
            browser.openURL(new URL(url));
        }
    } catch (PartInitException pie) {
        ErrorUtil.displayErrorDialog(pie.getLocalizedMessage());
    }
}
项目:eclipse-plugin    文件:RunOnCodenvyConsoleLineTracker.java   
@Override
public void init(IConsole console) {
    final CodenvyRunnerProcess runnerProcess = (CodenvyRunnerProcess)console.getProcess();

    runnerProcess.addWebApplicationListener(new WebApplicationListener() {
        private IWebBrowser      webApplicationBrowser;
        private final IWorkbench workbench = PlatformUI.getWorkbench();

        @Override
        public void webApplicationStarted(final WebApplicationEvent event) {
            workbench.getDisplay().syncExec(new Runnable() {
                @Override
                public void run() {
                    try {

                        webApplicationBrowser = workbench.getBrowserSupport()
                                                         .createBrowser(NAVIGATION_BAR | LOCATION_BAR, null, null, null);

                        webApplicationBrowser.openURL(new URL(event.webApplicationLink.href()));

                    } catch (PartInitException | MalformedURLException e) {
                        throw new RuntimeException(e);
                    }
                }
            });
        }

        @Override
        public void webApplicationStopped() {
            workbench.getDisplay().syncExec(new Runnable() {
                @Override
                public void run() {
                    if (webApplicationBrowser != null) {
                        webApplicationBrowser.close();
                    }
                }
            });
        }
    });
}
项目:eclipse-plugin    文件:WebHyperLink.java   
@Override
public void linkActivated() {
    final IWorkbenchBrowserSupport workbenchBrowserSupport = PlatformUI.getWorkbench().getBrowserSupport();
    try {

        final IWebBrowser browser = workbenchBrowserSupport.getExternalBrowser();
        browser.openURL(new URL(url));

    } catch (PartInitException | MalformedURLException e) {
        throw new RuntimeException(e);
    }
}
项目:tmxeditor8    文件:AbstractSelfHelpUI.java   
public void displayURL(String url) throws Exception {
    try {
        IWebBrowser browser = getExternalBrowser();
        if (browser != null) {
            browser.openURL(new URL(url));
        }
    } catch (PartInitException pie) {
        ErrorUtil.displayErrorDialog(pie.getLocalizedMessage());
    }
}
项目:tmxeditor8    文件:AbstractSelfHelpUI.java   
public void displayURL(String url) throws Exception {
    try {
        IWebBrowser browser = getExternalBrowser();
        if (browser != null) {
            browser.openURL(new URL(url));
        }
    } catch (PartInitException pie) {
        ErrorUtil.displayErrorDialog(pie.getLocalizedMessage());
    }
}
项目:birt    文件:SystemBrowserAdapter.java   
/**
 * Display arbitary url.
 * 
 * @param url
 */
public void displayURL( String url )
{
    // if ( !Program.launch( url ) )
    // {
    //          ViewerPlugin.logError( ViewerPlugin.getFormattedResourceString( "viewer.browser.systemBrowser.noprogramforurl", //$NON-NLS-1$
    // new Object[]{
    // url
    // } ),
    // null );
    // }

    // use WorkbenchBrowserSupport so we needn't to provide browser
    // configuration
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench( )
            .getBrowserSupport( );
    try
    {
        IWebBrowser browser = support.getExternalBrowser( );
        browser.openURL( new URL( url ) );
    }
    catch ( Exception e )
    {
        ViewerPlugin.logError( ViewerPlugin.getFormattedResourceString( "viewer.browser.systemBrowser.noprogramforurl", //$NON-NLS-1$
                new Object[]{
                    url
                } ),
                null );
    }
}
项目:jenkinsViewer    文件:JenkinsView.java   
private void hookDoubleClickAction() {
    viewer.addDoubleClickListener(new IDoubleClickListener() {
        public void doubleClick(DoubleClickEvent event) {
            Map<String, String> map = (Map<String, String>)((StructuredSelection)event.getSelection()).getFirstElement();
            try {
                IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser();
                browser.openURL(new URL(map.get("url")));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    });
}
项目:Pydev    文件:SystemUtils.java   
/**
 * Open a webpage in Eclipse's default browser.
 * 
 * @param url URL address of the webpage
 * @param id String id for the newly created browser view
 */
public static void openWebpageInEclipse(URL url, String id) {
    IWebBrowser browser;
    try {
        browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser(id);
        browser.openURL(url);
    } catch (Exception e) {
        Log.log(e);
    }
}
项目:MMINT    文件:MIDContextOpenModelepediaListener.java   
@Override
public void widgetSelected(SelectionEvent e) {

    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    String url = WIKI_WWW + modelType.getName();
    try {
        IWebBrowser browser = support.createBrowser("MMINT Wiki");
        browser.openURL(new URL(url));
    }
    catch (Exception ex) {
        MMINTException.print(IStatus.ERROR, "Error opening wiki page " + url, ex);
    }
}
项目:MMINT    文件:MIDContextEditModelepediaListener.java   
@Override
public void widgetSelected(SelectionEvent e) {

    String formType = "/Model_Type/";
    String args = "?";
    int i = 1;

    if (modelType.getName() != null)
        args = args + "name=" + modelType.getName();
    if (modelType.getSupertype() != null)
        args = args + "&supertype=" + modelType.getSupertype().getName();

    if (modelType instanceof ModelRel) {
        formType = "/Relationship_Type/";

        ModelRel modelRelType = (ModelRel) modelType;

        if (!modelRelType.getModelEndpoints().isEmpty())
            args = args + "&arguments=";

        for (ModelEndpoint modelEndpoint : modelRelType.getModelEndpoints()) {
            if (i != 1)
                args = args + ", ";
            args = args + modelEndpoint.getName() + ";" + modelEndpoint.getTarget().getName();
            i++;
        }
    }


    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    String url = WIKI_WWW + formType + modelType.getName() + args;
    try {
        IWebBrowser browser = support.createBrowser("MMINT Wiki");
        browser.openURL(new URL(url));
    }
    catch (Exception ex) {
        MMINTException.print(IStatus.ERROR, "Error opening wiki page " + url, ex);
    }
}
项目:MMINT    文件:MMINTOpenWikiMenu.java   
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {

    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    try {
        IWebBrowser browser = support.createBrowser("MMINT Wiki");
        browser.openURL(new URL(WIKI_WWW));
    }
    catch (Exception ex) {
        MMINTException.print(IStatus.ERROR, "Error opening wiki page " + WIKI_WWW, ex);
    }

    return null;
}
项目:APICloud-Studio    文件:WorkbenchBrowserSupport.java   
@SuppressWarnings({ "unchecked", "rawtypes" })
public IWebBrowser createBrowser(int style, String browserId, String name, String tooltip) throws PartInitException
{
    if (browserId == null)
    {
        browserId = getDefaultId();
    }
    if (getExistingWebBrowser(browserId) instanceof InternalBrowserInstance)
    {
        return super.createBrowser(style, browserId, name, tooltip);
    }
    if ((style & AS_EXTERNAL) != 0)
    {
        return super.createBrowser(style, browserId, name, tooltip);
    }
    IWebBrowser webBrowser = null;
    if ((style & IWorkbenchBrowserSupport.AS_VIEW) != 0)
    {
        if ((style & AS_INTERNAL) != 0)
        {
            webBrowser = new InternalBrowserViewInstance(browserId, style, name, tooltip);
        }
        else
        {
            webBrowser = new BrowserViewInstance(browserId, style, name, tooltip);
        }
    }
    else
    {
        if ((style & AS_INTERNAL) != 0)
        {
            webBrowser = new InternalBrowserEditorInstance(browserId, style, name, tooltip);
        }
        else
        {
            webBrowser = new BrowserEditorInstance(browserId, style, name, tooltip);
        }
    }
    // we should only share internal browsers within one workbench window. Each workbench window can have a shared
    // browser with the same id
    IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    Integer key = Integer.valueOf(workbenchWindow.hashCode());
    Map wmap = (Map) browserIdMap.get(browserId);
    if (wmap == null)
    {
        wmap = new HashMap();
        browserIdMap.put(browserId, wmap);
    }
    wmap.put(key, webBrowser);
    return webBrowser;
}
项目:translationstudio8    文件:AbstractSelfHelpUI.java   
private IWebBrowser getExternalBrowser() throws PartInitException {
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    return support.getExternalBrowser();
}
项目:tmxeditor8    文件:AbstractSelfHelpUI.java   
private IWebBrowser getExternalBrowser() throws PartInitException {
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    return support.getExternalBrowser();
}
项目:tmxeditor8    文件:AbstractSelfHelpUI.java   
private IWebBrowser getExternalBrowser() throws PartInitException {
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    return support.getExternalBrowser();
}
项目:birt    文件:BrowserAccessor.java   
private IWebBrowser getExternalBrowser( ) throws PartInitException
{
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench( )
            .getBrowserSupport( );
    return support.getExternalBrowser( );
}