Examples of openURL()


Examples of com.eclipsesource.tabris.interaction.AppLauncher.openUrl()

  @Test
  public void testOpenUrlCreatesCallOperation() {
    RemoteObject remoteObject = environment.getRemoteObject();
    AppLauncher launcher = new AppLauncherImpl();

    launcher.openUrl( "http://foo.bar" );

    ArgumentCaptor<JsonObject> captor = ArgumentCaptor.forClass( JsonObject.class );
    verify( remoteObject ).call( eq( "openUrl" ), captor.capture() );
    assertEquals( JsonValue.valueOf( "http://foo.bar" ), captor.getValue().get( "url" ) );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.interaction.AppLauncher.openUrl()

  @Test( expected = IllegalArgumentException.class )
  public void testOpenUrlFailsWithNull() {
    AppLauncher launcher = new AppLauncherImpl();

    launcher.openUrl( null );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testOpenUrlFailsWithInvalidUrl() {
    AppLauncher launcher = new AppLauncherImpl();
View Full Code Here

Examples of com.eclipsesource.tabris.interaction.AppLauncher.openUrl()

  @Test( expected = IllegalArgumentException.class )
  public void testOpenUrlFailsWithInvalidUrl() {
    AppLauncher launcher = new AppLauncherImpl();

    launcher.openUrl( "fooBar" );
  }
}
View Full Code Here

Examples of com.eclipsesource.tabris.interaction.AppLauncher.openUrl()

   
    // Add an action to open a website
    imageLabel.addMouseListener( new MouseAdapter() {
      public void mouseUp( MouseEvent e ) {
        AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
        appLauncher.openUrl( "http://eclipsesource.com/blogs/tag/tabris/" );
      }
  } );
  }

}
View Full Code Here

Examples of com.publicobject.misc.swing.WebStart.openUrl()

            super("View Issue");
        }
        public void actionPerformed(ActionEvent event) {
            WebStart webStart = WebStart.tryCreate();
            if(webStart == null) return;
            webStart.openUrl(issue.getURL());
        }
    }

    public JComponent getComponent() {
        return scrollPane;
View Full Code Here

Examples of net.sf.sahi.test.BrowserLauncher.openURL()

              public void run() {
                final BrowserLauncher launcher = new BrowserLauncher(browserType);
                launcher.setMaxTimeToWaitForPIDs(Configuration.getMaxTimeForPIDGatherFromDashboard());
              String url = "http://" + Configuration.getCommonDomain() + "/_s_/dyn/Driver_initialized?browserType=" + browserType.name();    
                try {
              launcher.openURL(url);
              launcher.waitTillAlive();
              launcher.kill();
            } catch (Exception e) {
              e.printStackTrace();
            }
View Full Code Here

Examples of net.sf.sahi.test.BrowserLauncher.openURL()

        final BrowserLauncher launcher = new BrowserLauncher(browser, browserProcessName, browserOption, useProxy);
    String url = "http://" + Configuration.getCommonDomain() + "/_s_/dyn/Driver_start?sahisid="
      + session.id()
      + "&startUrl="
      + Utils.encode("http://" + Configuration.getCommonDomain() + "/_s_/dyn/Driver_initialized?startUrl="+Utils.encode(startUrl));     
      launcher.openURL(url);       
        session.setLauncher(launcher);
  }  
 
    public void kill(final HttpRequest request) {
      Session session = request.session();
View Full Code Here

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

      if (currentRuntime != null) {
        URL rootURL = currentRuntime.getRootURL();
        if (rootURL != null) {
          IWebBrowser browser = WGADesignerPlugin.getDefault().createBrowser(BROWSER_ID);
          URL url = WGADesignStructureHelper.generateHttpURL(rootURL, contentStore, module);
          browser.openURL(url);
        }
      }
    } catch (Exception e) {
      WorkbenchUtils.showErrorDialog(WGADesignerPlugin.getDefault(), Display.getCurrent().getActiveShell(), "Unable to open tml module", "Unable to open tml module '" + module.getLocation() + "' in browser.", e);
    }
View Full Code Here

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

 
  public static void call(WGARuntime runtime) {
     try {
       if (runtime != null) {
         IWebBrowser browser = WGADesignerPlugin.getDefault().createBrowser(BROWSER_ID);
         browser.openURL(runtime.getContentManagerURL());
       }
    } catch (PartInitException e) {
      WGADesignerPlugin.getDefault().logError("Unable to open admin page.", e);
    }
  }
View Full Code Here

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

  public static void call(WGARuntime runtime) {
    try {
       if (runtime != null) {
         IWebBrowser browser = WGADesignerPlugin.getDefault().createBrowser(BROWSER_ID);
         browser.openURL(runtime.getAdminPageURL());
       }
    } catch (PartInitException e) {
      WGADesignerPlugin.getDefault().logError("Unable to open admin page.", 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.