Package org.eclipse.ui.browser

Examples of org.eclipse.ui.browser.IWorkbenchBrowserSupport.createBrowser()


        link = new URI(URIUtils.fastEncode((String) object));

      if (link != null && link.isAbsolute()) {
        IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
        try {
          IWebBrowser browser = browserSupport.createBrowser(WebBrowserView.EDITOR_ID);

          /* Our own Web Browser Support is used */
          if (browser instanceof EmbeddedWebBrowser) {
            if (fContext != null)
              ((EmbeddedWebBrowser) browser).setContext(fContext);
View Full Code Here


        if (MessageDialog.openQuestion(null, Messages.URLShare_RECEIVED_URL_TITLE, NLS.bind(Messages.URLShare_RECEIVED_URL_MESSAGE, user, url))) {
          final IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
          IWebBrowser browser;
          try {
            browser = support.createBrowser(null);
            browser.openURL(new URL(url));
          } catch (final Exception e) {
            logError(Messages.URLShare_EXCEPTION_LOG_BROWSER, e);
          }
        }
View Full Code Here

   
    // open browser view or reuse existing if already open
    final IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    try {
      final URL url = location.toURL();
      support.createBrowser(url.toExternalForm()).openURL(url);
    } catch (PartInitException e) {
      throw new ExecutionException(e.getMessage(), e);
    } catch (MalformedURLException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
View Full Code Here

        public void run() {
          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(
View Full Code Here

  private void showURL(String string) {
    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

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.