Examples of AppLauncher


Examples of com.eclipsesource.tabris.interaction.AppLauncher

  private Display display;

  public int createUI() {
    display = new Display();
    final Shell shell = createShell();
    AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
    if( appLauncher != null ) {
      createToolBar( shell );
      Composite container = createParentComposite( shell );
      createBrowserLauncher( container, appLauncher );
      createMailLauncher( container, appLauncher );
View Full Code Here

Examples of com.eclipsesource.tabris.interaction.AppLauncher

    } );
    return button;
  }

  protected void openLocation( double latitude, double longitude ) {
    AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
    if( appLauncher != null ) {
      MapsOptions mapsOptions = new MapsOptions( latitude, longitude );
      appLauncher.open( mapsOptions );
    }
  }
View Full Code Here

Examples of com.eclipsesource.tabris.interaction.AppLauncher

public class ShareAction extends AbstractAction {

  @Override
  public void execute() {
    AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
    if( appLauncher != null ) {
      Book book = getCurrentPageData().get( BOOK_ITEM, Book.class );
      String body = format( "Check out the book \"{0}\".", book.getTitle() );
      MailOptions launchOptions = new MailOptions( "user@mail.com", body );
      appLauncher.open( launchOptions );
    }
  }
View Full Code Here

Examples of com.eclipsesource.tabris.interaction.AppLauncher

public class PageAction extends AbstractAction {

  @Override
  public void execute() {
    AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
    TwitterOptions twitterOptions = new TwitterOptions( "Just created a Tabris HelloWorld App. Take a look..." );
    twitterOptions.setUrl( "http://developer.eclipsesource.com/tabris" );
    appLauncher.open( twitterOptions );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.interaction.AppLauncher

    imageLabel.setImage( new Image( parent.getDisplay(), Page.class.getResourceAsStream( "/tabris.png" ) ) );
   
    // 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 org.apache.helix.provisioning.yarn.AppLauncher

    File yamlConfigFile = new File(yamlConfigFileName);
    if (!yamlConfigFile.exists()) {
      throw new IllegalArgumentException("YAML app_config_spec file: '" + yamlConfigFileName
          + "' does not exist");
    }
    final AppLauncher launcher = new AppLauncher(applicationSpecFactory, yamlConfigFile);
    launcher.launch();
    Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {

      @Override
      public void run() {
        launcher.cleanup();
      }
    }));

    final ApplicationSpec appSpec = launcher.getApplicationSpec();

    // Repeatedly print status
    final HelixConnection connection = launcher.pollForConnection();
    final ClusterId clusterId = ClusterId.from(appSpec.getAppName());
    // TODO: this is a hack -- TaskDriver should accept a connection instead of a manager
    HelixManager manager = new ZKHelixManager(new HelixRole() {
      @Override
      public HelixConnection getConnection() {
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.