Examples of run()


Examples of org.eclipse.wst.jsdt.web.ui.SetupProjectsWizzard.run()

            if (addJavaScriptSupport == 0 && project != null) {
              SetupProjectsWizzard wiz = new SetupProjectsWizzard();
              wiz.setActivePart(null, this.getTextEditor());
              wiz.selectionChanged(null, new StructuredSelection(
                  project));
              wiz.run(null);
            }
            return;
          }

        } catch (CoreException e) {
View Full Code Here

Examples of org.eclipse.wst.wsdl.validation.internal.xml.IXMLValidator.run()

        XMLGrammarPool grammarPool = (XMLGrammarPool)valInfo.getAttribute(Constants.XML_CACHE_ATTRIBUTE);
        if(grammarPool != null)
          ((DefaultXMLValidator)xmlValidator).setGrammarPool(grammarPool);
    }
    //xmlValidator.setValidationInfo(valInfo);
    xmlValidator.run();
    // if there are no xml conformance problems go on to check the wsdl stuff
    if (xmlValidator.hasErrors())
    {
      // temp handling of XML errors until validator is updated.
      List errors = xmlValidator.getErrors();
View Full Code Here

Examples of org.elasticsearch.hadoop.yarn.client.YarnLauncher.run()

        ApplicationId id = null;
        ApplicationReport report = null;

        try {
            YarnLauncher launcher = new YarnLauncher(client, cfg);
            id = launcher.run();
            report = client.getReport(id);
        } finally {
            client.close();
        }
View Full Code Here

Examples of org.elasticsearch.script.ExecutableScript.run()

                        Map<String, Object> vars = new HashMap<String, Object>();
                        vars.put("x", x);
                        vars.put("y", y);
                        ExecutableScript script = se.executable(compiled, vars);
                        for (int i = 0; i < 100000; i++) {
                            long result = ((Number) script.run()).longValue();
                            assertThat(result, equalTo(addition));
                        }
                    } catch (Throwable t) {
                        failed.set(true);
                        logger.error("failed", t);
View Full Code Here

Examples of org.elasticsearch.script.SearchScript.run()

                            SearchScript searchScript = scriptService.search(searchLookup, "mvel", script, null);
                            searchScript.setNextReader(docIdAndVersion.reader);
                            searchScript.setNextDocId(docIdAndVersion.docId);

                            try {
                                Object value = searchScript.run();
                                if (fields == null) {
                                    fields = newHashMapWithExpectedSize(2);
                                }
                                GetField getField = fields.get(field);
                                if (getField == null) {
View Full Code Here

Examples of org.emftrace.emffit.ui.controls.providers.AccessLayerContentProvider.run()

    //test without exclude

    AccessLayerContentProvider cp = new AccessLayerContentProvider(
        "Factor""foo", accessLayer);
    assertEquals(false, cp.getExecuted());
    cp.run();
    assertEquals(true, cp.getExecuted());
    List<ContentProviderResultItem> res = cp.getResult();
   
    assertEquals(4, res.size());
   
View Full Code Here

Examples of org.emftrace.emffit.ui.controls.providers.CPListProvider.run()

  String userDir = System.getProperty("user.dir");

   
    String filePath = userDir+"/src/emffit_controls/tests/fixtures/CPListProviderTest.xml";
    CPListProvider cPListProvider = new CPListProvider(filePath, accessLayer);
    cPListProvider.run();
    result = cPListProvider.getResult();
    assertEquals(2, result.size());
    assertEquals("Factor", result.get(0).getModelElementClassString());
    assertEquals("Factors", result.get(0).getCaption());
View Full Code Here

Examples of org.emrys.webosgi.core.runtime.BundleContextRunnable.run()

        protected IStatus execute() {
          filterBase.filter.destroy();
          return Status.OK_STATUS;
        }
      };
      runnable.run();
    }
  }

  public void doFilter(final ServletRequest request,
      final ServletResponse response, final FilterChain chain)
View Full Code Here

Examples of org.encog.script.EncogScript.run()

  {
    StringConsole console = new StringConsole();
    EncogJavascriptEngine.init();
    EncogScript script = new EncogScript();
    script.setSource("console.print(\'Hello World\')\n");
    script.run(console);
    Assert.assertEquals(console.toString(),"Hello World");   
  }
 
  public void testLoop()
  {
View Full Code Here

Examples of org.eobjects.analyzer.cli.CliRunner.run()

      // run in CLI mode

      CliArguments arguments = _options.getCommandLineArguments();

      final CliRunner runner = new CliRunner(arguments, out);
      runner.run(configuration);
      out.flush();

      exitCommandLine(configuration, 0);
      return;
    } else {
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.