Examples of openUrl()


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

        try {
            browser = browserSupport.createBrowser(
                IWorkbenchBrowserSupport.AS_EDITOR
                    | IWorkbenchBrowserSupport.LOCATION_BAR
                    | IWorkbenchBrowserSupport.NAVIGATION_BAR, null, title, "");
            browser.openURL(url);
            return true;
        } catch (Exception e) {
            log.error("Couldn't open internal Browser", e);
            return false;
        }
View Full Code Here

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

          public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
            IWorkbenchBrowserSupport browserSupport =
              PlatformUI.getWorkbench().getBrowserSupport();
          try {
              IWebBrowser browser = browserSupport.getExternalBrowser();
              browser.openURL(new URL("http://sites.google.com/site/slim3appengine/"));
          } catch (PartInitException ex) {
              ex.printStackTrace();
          } catch (MalformedURLException ex) {
              ex.printStackTrace();
          }
View Full Code Here

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

          public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
            IWorkbenchBrowserSupport browserSupport =
              PlatformUI.getWorkbench().getBrowserSupport();
          try {
              IWebBrowser browser = browserSupport.getExternalBrowser();
              browser.openURL(new URL("http://code.google.com/p/scenic3/"));
          } catch (PartInitException ex) {
              ex.printStackTrace();
          } catch (MalformedURLException ex) {
              ex.printStackTrace();
          }
View Full Code Here

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

      if(embed){
        browser = browserSupport.createBrowser(browserid); //$NON-NLS-1$
      }else{
        browser = browserSupport.getExternalBrowser();
      }
      browser.openURL(new URL(url));
      return browser;
    } catch (Exception e) {
      return null;
    }
  }
View Full Code Here

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

            href = "file:///" + href; //$NON-NLS-1$
        }
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    try {
      IWebBrowser browser = support.getExternalBrowser();
      browser.openURL(new URL(urlEncodeForSpaces(href.toCharArray())));
    }
    catch (MalformedURLException e) {
      openWebBrowserError(href, e);
    }
    catch (PartInitException e) {
View Full Code Here

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

                            .getInstance().getWorkbench().getBrowserSupport();
                    IWebBrowser browser = browserSupport.createBrowser(
                            IWorkbenchBrowserSupport.LOCATION_BAR
                                    | IWorkbenchBrowserSupport.NAVIGATION_BAR,
                            null, null, null);
                    browser.openURL(url);
                } catch (Exception e) {
                    Trace.trace(Trace.SEVERE, "Error opening browser", e);
                }
            }
        });
View Full Code Here

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

        }
        IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
        try {
            IWebBrowser newBrowser = support.createBrowser(browserId);
            browserId = newBrowser.getId();
            newBrowser.openURL(url);
            return;
        } catch (PartInitException e) {
            FindbugsPlugin.getDefault().logException(e, "Can't open external browser");
        }
    }
View Full Code Here

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

        relatedPath = relatedPath.replace("/WEB", xmii);

        URL url;
        try {
            url = new URL(webURL + relatedPath);
            browser.openURL(url);
        }
        catch (Exception e) {
            e.printStackTrace();
        }
       
View Full Code Here

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

    favorButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        try {
          final IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser(null);
          browser.openURL(new URL(item.getAsString("url")));
        } catch (Exception e1) {
          Logger.logException(e1);
        }
      }
    });
View Full Code Here

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

        null,
        title,
        String.format(Messages.Message_Result, EclipastiePlugin.PLUGINNAME)
        );

      browser.openURL(targetURL);
    } catch (PartInitException e) {
      e.printStackTrace();
      String pluginID = EclipastiePlugin.PLUGINNAME;
      IStatus status = new Status(IStatus.ERROR, pluginID, String.format(Messages.Message_ErrorReported, e.getLocalizedMessage()));
      ErrorDialog.openError(window.getShell(),
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.