Package org.eclipse.ui.browser

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


    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

        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

                                Messages.bind(Messages.console, server.getName()),
                                Messages.bind(Messages.consoleTooltip, server
                                                .getName()));
      URL url = getConsoleUrl();
      if (url != null)
        browser.openURL(url);
    } catch (MalformedURLException e) {
      e.printStackTrace();
    } catch (PartInitException e) {
      e.printStackTrace();
    }
View Full Code Here

                            supportURL,
                            Messages.bind(Messages.supportWebPageTooltip, server
                                    .getName()));
            URL url = getConsoleUrl();
            if (url != null)
                browser.openURL(url);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (PartInitException e) {
            e.printStackTrace();
        }
View Full Code Here

          int style = IWorkbenchBrowserSupport.AS_EXTERNAL
              | IWorkbenchBrowserSupport.STATUS;
          IWebBrowser browser = WorkbenchBrowserSupport.getInstance()
              .createBrowser(style, "download server",
                  "get server", "tool tip");
          browser.openURL(new URL(url));
        } catch (MalformedURLException e) {
          e.printStackTrace();
        } catch (PartInitException e) {
          e.printStackTrace();
        }
View Full Code Here

          URL url;
          try {
            url = new URL(urlString);
            IWorkbenchBrowserSupport browserSupport = WebBrowserUIPlugin.getInstance().getWorkbench().getBrowserSupport();
            IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.LOCATION_BAR | IWorkbenchBrowserSupport.NAVIGATION_BAR, null, null, null);
            browser.openURL(url);
          } catch (MalformedURLException e1) {
            LaunchingPlugin.getDefault().log(e1);
          } catch (PartInitException e) {
            LaunchingPlugin.getDefault().log(e);
          }
View Full Code Here

      IWebBrowser browser;
      try {
         
       
        browser = support.createBrowser(""+System.currentTimeMillis());
        browser.openURL(new URL("http://www.salesforce.com/us/developer/docs/apexcode/index.htm"));
      } catch (PartInitException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (MalformedURLException e) {
        // TODO Auto-generated catch block
View Full Code Here

     

      browser = support.createBrowser("" + System.currentTimeMillis());
     
      if (found) {
        browser.openURL(new URL(
            "http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_"
                + word + ".htm"));
      } else {
        browser.openURL(new URL(
            "http://www.salesforce.com/us/developer/docs/pages/index.htm?"+word));
View Full Code Here

      if (found) {
        browser.openURL(new URL(
            "http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_"
                + word + ".htm"));
      } else {
        browser.openURL(new URL(
            "http://www.salesforce.com/us/developer/docs/pages/index.htm?"+word));
      }

      //
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.