Package org.eclipse.ui.browser

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


        if (userWantsMigrationDocLaunch)
        try {
          IWorkbenchBrowserSupport browserSupport =
            PlatformUI.getWorkbench().getBrowserSupport();
          URL url = new URL("http://wiki.eclipse.org/index.php/JSF_Library_Migration"); //$NON-NLS-1$
          browserSupport.createBrowser("JSFMigrationDoc").openURL(url); //$NON-NLS-1$
        } catch (PartInitException e) {
          JSFCorePlugin.log(e,"Error handling migration"); //$NON-NLS-1$
        } catch (MalformedURLException e) {
          JSFCorePlugin.log(e,"Error handling migration"); //$NON-NLS-1$
        }
View Full Code Here


        if (userWantsMigrationDocLaunch)
        try {
          IWorkbenchBrowserSupport browserSupport =
            PlatformUI.getWorkbench().getBrowserSupport();
          URL url = new URL("http://wiki.eclipse.org/index.php/JSF_Library_Migration"); //$NON-NLS-1$
          browserSupport.createBrowser("JSFMigrationDoc").openURL(url); //$NON-NLS-1$
        } catch (PartInitException e) {
          TapestryCorePlugin.log(e,"Error handling migration"); //$NON-NLS-1$
        } catch (MalformedURLException e) {
          TapestryCorePlugin.log(e,"Error handling migration"); //$NON-NLS-1$
        }
View Full Code Here

      try {
       

      IWorkbenchBrowserSupport support =
          PlatformUI.getWorkbench().getBrowserSupport();
        IWebBrowser browser = support.createBrowser("otro.browser");
      //  browser.openURL(new URL("http://www.eclipse.org"));

      UrlDialog url = new UrlDialog(HandlerUtil.getActiveShell(event));
      url.open();
      String feedUrl = url.getUrl();
View Full Code Here

  public static IWebBrowser openSystemBrowser(String browserid, String url,boolean embed) {
    try {
      IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
      IWebBrowser browser = null;
      if(embed){
        browser = browserSupport.createBrowser(browserid); //$NON-NLS-1$
      }else{
        browser = browserSupport.getExternalBrowser();
      }
      browser.openURL(new URL(url));
      return browser;
View Full Code Here

                URL url;
                try {
                    url = new URL("http://localhost:8888");
                    IWorkbenchBrowserSupport browserSupport = WebBrowserUIPlugin
                            .getInstance().getWorkbench().getBrowserSupport();
                    IWebBrowser browser = browserSupport.createBrowser(
                            IWorkbenchBrowserSupport.LOCATION_BAR
                                    | IWorkbenchBrowserSupport.NAVIGATION_BAR,
                            null, null, null);
                    browser.openURL(url);
                } catch (Exception e) {
View Full Code Here

        } catch (MalformedURLException ignored) {
            return;
        }
        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

          status);
      return;
    }

    try {
      browser = browserSupport.createBrowser(
          IWorkbenchBrowserSupport.AS_EDITOR
          | IWorkbenchBrowserSupport.LOCATION_BAR
          | IWorkbenchBrowserSupport.NAVIGATION_BAR,
        null,
        title,
View Full Code Here

        public void run() {
          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

    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
      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) {
View Full Code Here

          found = true;
        }
      }
     

      browser = support.createBrowser("" + System.currentTimeMillis());
     
      if (found) {
        browser.openURL(new URL(
            "http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_"
                + word + ".htm"));
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.