private void openInBrowserButtonInvoked(){
  try {
    final URI uri=URIUtils.newURI(browserHistory.getCurrentURL());
    BrowserFacade.launchURL(uri,uri.getPath());
  }
 catch (  final IllegalArgumentException e) {
    final String messageFormat=Messages.getString("WebPageControl.ErrorDialogTextFormat");
    final String message=MessageFormat.format(messageFormat,e.getMessage());
    MessageDialog.openError(browser.getShell(),Messages.getString("WebPageControl.ErrorDialogTitle"),message);
  }
}

private void openInBrowserButtonInvoked ( ) { try { final URI uri = URIUtils . newURI ( browserHistory . getCurrentURL ( ) ) ; BrowserFacade . launchURL ( uri , uri . getPath ( ) ) ; } catch ( final IllegalArgumentException e ) { final String messageFormat = Messages . getString ( "WebPageControl.ErrorDialogTextFormat" ) ; final String message = MessageFormat . format ( messageFormat , e . getMessage ( ) ) ; MessageDialog . openError ( browser . getShell ( ) , Messages . getString ( "WebPageControl.ErrorDialogTitle" ) , message ) ; } }
open the currently displayed url in an internal or external browser , depending on the user preference .
