if (url == null)
{
throw new IllegalArgumentException("url must not be null");
}
final ExternalToolSettings instance = ExternalToolSettings.getInstance();
if (instance.isUseDefaultBrowser())
{
try
{
new BrowserLauncher().openURLinBrowser(url);
}
catch (Exception e)
{
UncaughtExceptionsModel.getInstance().addException(e);
}
}
else
{
if(execute(instance.getCustomBrowserExecutable(),
instance.getCustomBrowserParameters(), url) == false)
{
throw new IOException(UtilMessages.getInstance().getString("ExternalToolLauncher.errorMessage",instance.getCustomBrowserExecutable()));
}
}
}