Package org.eclipse.ui.browser

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


      } else {
        browser = browserSupport.createBrowser(BROWSER_ID);
      }

      if (url.startsWith("mk:")) { //$NON-NLS-1$
        browser.openURL(new URL(null, url, new MkHandler()));
      } else if (url.startsWith("help://")) { //$NON-NLS-1$
        // convert to help system URL
        String helpURL = url.substring("help://".length()); //$NON-NLS-1$
        // open in Help System
        PlatformUI.getWorkbench().getHelpSystem()
View Full Code Here


              MessageDialog.INFORMATION,
              new String[] { IDialogConstants.OK_LABEL }, 0);
          d.open();
          return;
        }
        browser.openURL(url2);
      }

    } catch (PartInitException e) {
      Logger.logException(e);
    } catch (MalformedURLException e) {
View Full Code Here

          if (PHPDebugPlugin.DEBUG) {
            System.out.println("Opening URL in a browser: " //$NON-NLS-1$
                + debugURL.toString());
          }
          browser.openURL(debugURL);

        } catch (Throwable t) {
          Logger.logException("Error initializing the web browser.", //$NON-NLS-1$
              t);
          String errorMessage = PHPDebugCoreMessages.Debugger_Unexpected_Error_1;
View Full Code Here

          IWebBrowser browser;
          if (useExternalBrowser)
            browser = browserSupport.getExternalBrowser();
          else
            browser = browserSupport.createBrowser(null);
          browser.openURL(helpSystemUrl);
        } catch (PartInitException ex) {
          // XXX: show dialog?
          //                    PHPUiPlugin.logErrorStatus("Opening Javadoc failed", ex.getStatus());
        }
      }
View Full Code Here

      public void widgetSelected(SelectionEvent event) {
        try {
          IWorkbenchBrowserSupport browserSupport = PlatformUI
              .getWorkbench().getBrowserSupport();
          IWebBrowser browser = browserSupport.getExternalBrowser();
          browser
              .openURL(new URL(
                  "http://www.zend.com/en/products/studio/downloads")); //$NON-NLS-1$
        } catch (Exception e) {
        }
      }
View Full Code Here

      public void widgetSelected(SelectionEvent event) {
        try {
          IWorkbenchBrowserSupport browserSupport = PlatformUI
              .getWorkbench().getBrowserSupport();
          IWebBrowser browser = browserSupport.getExternalBrowser();
          browser.openURL(new URL(
              "http://www.zend.com/app-server/downloads")); //$NON-NLS-1$
        } catch (Exception e) {
        }
      }
    });
View Full Code Here

      throw new NullPointerException( "url is null" );
    }
    IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
    try {
      IWebBrowser browser = support.createBrowser( BROWSER_STYLE, url, null, null );
      browser.openURL( new URL( url ) );
    } catch( MalformedURLException exception ) {
      throw new IllegalArgumentException( "Invalid URL: " + url );
    } catch( PartInitException exception ) {
      StatusManager.getManager().handle( exception.getStatus(), StatusManager.LOG );
    }
View Full Code Here

            }
          }

          /* Any other Web Browser Support */
          else
            browser.openURL(link.toURL());
        } catch (PartInitException e) {
          Activator.getDefault().getLog().log(e.getStatus());
        } catch (MalformedURLException e) {
          Activator.getDefault().getLog().log(Activator.getDefault().createErrorStatus(e.getMessage(), e));
        }
View Full Code Here

                IWebBrowser browser = wbCore.getWorkbench().getBrowserSupport()
                    .createBrowser(
                        IWorkbenchBrowserSupport.AS_EDITOR | IWorkbenchBrowserSupport.NAVIGATION_BAR,
                        BROWSER_ID, null, null);
               
                browser.openURL(index);
            }
        }
        catch (Exception e)
        {
            Utils.logError("Failed to open the welcome view.", e, false);
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

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.