Examples of openUrl()


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

    PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL(url));
  }

  private void openInInternal(String url) throws PartInitException, MalformedURLException {
    IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser("testbrowser");
    browser.openURL(new URL(url));
  }

}
View Full Code Here

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

                    if (useExternalBrowser) {
                        browser = browserSupport.getExternalBrowser();
                    } else {
                        browser = browserSupport.createBrowser(null);
                    }
                    browser.openURL(helpSystemUrl);
                } catch (final PartInitException ex) {
                    // XXX: show dialog?
                    ErlLogger.error(ex);
                }
            }
View Full Code Here

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

                final String name = file.getName();
                final String browserId = getName() + "_" + name;
                IWebBrowser browser;
                browser = browserSupport.createBrowser(style, browserId, name, null);
                try {
                    browser.openURL(file.getRawLocationURI().toURL());
                } catch (final MalformedURLException e) {
                    // should not happen
                    ErlLogger.error(e);
                }
            } catch (final PartInitException e) {
View Full Code Here

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

    {
      IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
     
      IWebBrowser browser = browserSupport.getExternalBrowser();
     
      browser.openURL(new URL(url));
    }
    catch (PartInitException exception)
    {
      JavaNCSSPlugin.log(exception);
    }
View Full Code Here

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

          IWebBrowser browser = browserSupport.createBrowser(
            IWorkbenchBrowserSupport.NAVIGATION_BAR, "HudsonBrowser", null, null);
         
          if (browser != null)
          {
            browser.openURL(new URL(url));
           
            return;
          }
        }
      }
View Full Code Here

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

            @Override
            public void linkActivated(HyperlinkEvent event) {
                IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
                try {
                    IWebBrowser externalBrowser = browserSupport.getExternalBrowser();
                    externalBrowser.openURL(new URL((String) event.getHref()));
                } catch (PartInitException e) {
                    logger.logError("Error opening external browser.", e);
                } catch (MalformedURLException e) {
                    // Ignore
                }
View Full Code Here

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

    }
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench()
        .getBrowserSupport();
    try {
      IWebBrowser browser = support.getExternalBrowser();
      browser.openURL(new URL(UIUtilities.urlEncodeForSpaces(href.toCharArray())));
    } catch (MalformedURLException e) {
      e.printStackTrace();
    } catch (PartInitException e) {
      e.printStackTrace();
    }
View Full Code Here

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

      super.open();
      return;
    }

    try {
      browser.openURL(new URL(fURLString));
    } catch (PartInitException e) {
      super.open();
    } catch (MalformedURLException e) {
      super.open();
    }
View Full Code Here

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

        try {
          if (isDebug()) {
            openLocal(javaGaeProject, createBrowser);

          } else {
            createBrowser.openURL(new URL(
                "http://appengine.google.com/dashboard?&app_id="
                    + appId));
          }
        } catch (MalformedURLException e) {
          Activator.log(e);
View Full Code Here

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

        IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench()
            .getBrowserSupport();
        IWebBrowser browser;
        try {
            browser = browserSupport.getExternalBrowser();
            browser.openURL(url);
            return true;
        } catch (Exception e) {
            log.error("Couldn't open external browser", e);
            return false;
        }
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.