Package org.eclipse.ui.browser

Examples of org.eclipse.ui.browser.IWebBrowser.openURL()


          IWorkbenchBrowserSupport support = PlatformUI
              .getWorkbench().getBrowserSupport();
          IWebBrowser browser;
          try {
            browser = support.createBrowser(null);
            browser.openURL(new URL(url));
          } catch (Exception e) {
            MessageDialog.openError(null, Messages.ShowURLSharedObject_MSGBOX_OPENURL_ERROR_TITLE, NLS
                .bind(Messages.ShowURLSharedObject_MSGBOX_OPENURL_ERROR_TEXT, e.getLocalizedMessage()));
            ClientPlugin.getDefault().getLog().log(
                new Status(IStatus.ERROR,
View Full Code Here


    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench()
        .getBrowserSupport();
    IWebBrowser browser;
    try {
      browser = support.createBrowser(null);
      browser.openURL(new URL(string));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

        String generatedId = SpringUIPlugin.PLUGIN_ID + "-"
            + Calendar.getInstance().getTimeInMillis();
        browser = WorkbenchBrowserSupport.getInstance().createBrowser(flags, generatedId,
            null, null);
        browser.openURL(url);
      }
    }
    catch (PartInitException e) {
      MessageDialog.openError(Display.getDefault().getActiveShell(), "Browser init error",
          "Browser could not be initiated");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.