Examples of execute()


Examples of jetbrains.communicator.commands.ShowDiffCommand.execute()

    }

    ShowDiffCommand command = Pico.getCommandManager().getCommand(ShowDiffCommand.class, BaseAction.getContainer(editor.getProject()));
    command.setUser(user);
    command.setVFile(vFile);
    command.execute();
  }

  protected boolean shouldAddUserToChoiceList(User user) {
    return user.isOnline();
  }
View Full Code Here

Examples of jetbrains.communicator.core.commands.UserCommand.execute()

  protected void invokeSendMessageAction() {
    MutablePicoContainer container = BaseAction.getContainer(this);
    UserCommand command = Pico.getCommandManager().getCommand(SendMessageCommand.class, container);
    if (command.isEnabled()) {
      command.execute();
    }
  }

  public TreePath getPathForUser(User user) {
    TreeNode node = TreeUtils.findNodeWithObject((DefaultMutableTreeNode) getModel().getRoot(), user);
View Full Code Here

Examples of jnode.robot.IRobot.execute()

          }
        }
        if (oRobot != null) {
          isRobot = true;
          try {
            oRobot.execute(message);
          } catch (Exception e) {
            logger.l2("Robot excception  " + robotname
                + " (PROCCESS) ", e);
          }
        }
View Full Code Here

Examples of jodd.db.DbQuery.execute()

  public boolean checkDb() {
    log.debug("Check database.");
    DbSession dbSession = AppCore.ref.createDbSession();
    DbQuery query = new DbQuery(dbSession, "select count(1) from up_user_level");
    try {
      query.execute();
      log.debug("Database OK.");
        return true;
    } catch (Exception ignored) {
      return false;
    } finally {
View Full Code Here

Examples of joshua.corpus.suffix_array.Compile.execute()

      Compile compileJoshDir = new Compile();
      compileJoshDir.setSourceCorpus(sourceCorpusFileName);
      compileJoshDir.setTargetCorpus(targetCorpusFileName);
      compileJoshDir.setAlignments(alignmentFileName);
      compileJoshDir.setOutputDir(joshDirName);
      compileJoshDir.execute();
     
      ExtractRules extractRules = new ExtractRules();
      extractRules.setJoshDir(joshDirName);
      extractRules.setTestFile(testFileName);
      extractRules.setOutputFile(rulesFileName);
View Full Code Here

Examples of joshua.prefix_tree.ExtractRules.execute()

     
      ExtractRules extractRules = new ExtractRules();
      extractRules.setJoshDir(joshDirName);
      extractRules.setTestFile(testFileName);
      extractRules.setOutputFile(rulesFileName);
      extractRules.execute();
     
    } catch (IOException e) {
      Assert.fail("Unable to write temporary file. " + e.toString());
    } catch (ClassNotFoundException e) {
      Assert.fail("Unable to extract rules. " + e.toString());
View Full Code Here

Examples of jp.ac.kobe_u.cs.prolog.lang.PrologControl.execute()

      Predicate code = (Predicate) clazz.newInstance();
      // Translate Prolog into WAM
      PrologControl p = new PrologControl();
      p.setPredicate(code, args);
      // System.out.println(code);
      return p.execute(code, args);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return false;
  }
View Full Code Here

Examples of jp.vmi.selenium.selenese.Runner.execute()

        TestCase c2 = Binder.newTestCase(filename(root, c2name), c2name, "http://localhost");
        c2.addCommand(cf, "open", "/form2.html");
        s2.addSelenese(c2);
        s1.addSelenese(c1);
        s1.addSelenese(s2);
        runner.execute(s1);
        runner.finish();
    }
}
View Full Code Here

Examples of jp.vmi.selenium.selenese.TestCase.execute()

        TestCase testCase = Binder.newTestCase("dummy", "dummy", runner, wsr.getBaseURL());
        CommandFactory commandFactory = runner.getCommandFactory();
        commandFactory.setProc(testCase.getProc());
        testCase.addCommand(commandFactory.newCommand(0, "open", "/assertion.html"));
        testCase.addCommand(commandFactory.newCommand(1, commandName, argument));
        Result result = testCase.execute(null, runner);
        assertThat(result, is(instanceOf(resultClass)));
    }

    /**
     * test for string-match
View Full Code Here

Examples of jsr166y.ForkJoinPool.execute()

      tasks.add(new FileCounterRecursiveTaskWithPhaser(new File(c + ":\\"), phaser));
    }

    /* Launch tasks */
    for (FileCounterRecursiveTaskWithPhaser task : tasks) {
      taskExecutor.execute(task);
    }

    /*
     * Wait tasks termination using the Phaser and then display processing
     * state
 
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.