[jbosstools-dev] Re: Freezing in the build unit tests

Max Rydahl Andersen max.andersen at redhat.com
Fri Oct 19 04:20:12 EDT 2007


> //       WebBrowserUtil.canUseInternalWebBrowser()
>            // try loading it
>        Shell shell = null;
>        try {
>            shell = new Shell(PlatformUI.getWorkbench().getDisplay());
>            new Browser(shell, SWT.NONE);
>            isInternalBrowserOperational = new Boolean(true);
>            return true;
>        } catch (Throwable t) {
>            WebBrowserUIPlugin.getInstance().getLog().log(
>                    new Status(IStatus.WARNING, 
> WebBrowserUIPlugin.PLUGIN_ID,
>                            0, "Internal browser is not available: " + 
> t.getMessage(), null)); //$NON-NLS-1$
>            isInternalBrowserOperational = new Boolean(false);
>            return false;
>        } finally {
>            if (shell != null)
>                shell.dispose();
>        }
> 
> Setting in preferences (and as I think in plugin_customization.ini) 
> External Browser as Default Browser doesn't help.

Stupid logic....;(

Have you looked at what ATF does do avoid this ? (if they do that at all)

/max



More information about the jbosstools-dev mailing list