Examples of createBrowser()


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

    private IWorkbenchWindow window;

    public void run(IAction action) {
        try {
            IWorkbenchBrowserSupport browserSupport = window.getWorkbench().getBrowserSupport();
            IWebBrowser browser = browserSupport.createBrowser(6, null, null, null);
            browser.openURL(null);
        } catch (Exception e) {
            logger.logError("Error opening browser", e);
        }
    }
View Full Code Here

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

                            .getWorkbench().getBrowserSupport();
                    IWebBrowser browser;
                    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.IWorkbenchBrowserSupport.createBrowser()

                final int style = IWorkbenchBrowserSupport.NAVIGATION_BAR
                        | IWorkbenchBrowserSupport.AS_EDITOR;
                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);
View Full Code Here

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

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

Examples of org.eclipse.ui.internal.browser.DefaultBrowserSupport.createBrowser()

    protected static void showResults(final String url) {
    final DefaultBrowserSupport wb = new DefaultBrowserSupport();
        Display.getDefault().asyncExec(new Runnable() {
           public void run() {
        try {
          wb.createBrowser(wb.AS_EDITOR, "myId", "What's New", "What's new with CFEclipse")
          .openURL(new URL(url));
        } catch (PartInitException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (MalformedURLException e) {
View Full Code Here

Examples of org.jitterbit.application.ui.browser.WebBrowserFactory.createBrowser()

    private static WebBrowser getBrowser() {
        if (browser == null) {
            try {
                WebBrowserFactory factory = WebBrowserFactory.newInstance();
                browser = factory.createBrowser();
            } catch (UnsupportedPlatformException ex) {
                String msg = ApplicationResources.STRINGS.getString("TextComponentFactory.WebBrowser.NotSupported"); //$NON-NLS-1$
                ErrorLog.attention(UrlTextFieldDecorator.class, msg, ex);
                return null;
            }
View Full Code Here

Examples of tod.core.database.browser.ILogBrowser.createBrowser()

        this.processManager.getMaster().flush();
        ILogBrowser browser = this.todSession.getLogBrowser();
       
        if (thread == null) {
            return browser.createBrowser().clone();
        }
       
        // Create a thread filter.
        IThreadInfo todThread = this.getTODSession().getThreadTracker().getByReference(thread).getTODThreadReference();
        if (todThread == null) {
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.