Examples of Environment


Examples of org.pdtextensions.core.launch.environment.Environment

  /* (non-Javadoc)
   * @see org.pdtextensions.core.launch.ScriptLauncherInterface#getLauncher(java.lang.String, org.eclipse.core.resources.IProject)
   */
  @Override
  public ScriptLauncher getLauncher(String factoryId, IProject project) throws ScriptNotFoundException, ExecutableNotFoundException {
    Environment env = getEnvironment(factoryId, project);
    if (env == null) {
      throw new ExecutableNotFoundException("Can't find any executable");
    }
   
    return new ScriptLauncher(env, project);
View Full Code Here

Examples of org.rascalmpl.interpreter.env.Environment

   
    if (alts.size() == 0) {
      return null;
    }
   
    Environment env = (Environment) environment;
   
    Result<IValue> var = env.getVariable("amb");
   
    if (var != null && var instanceof ICallableValue) {
      Type type = RascalTypeFactory.getInstance().nonTerminalType(ambCluster);
      ICallableValue func = (ICallableValue) var;
      try {
View Full Code Here

Examples of org.renjin.sexp.Environment

    SEXP val=Null.INSTANCE;
    // char *buf, *bufptr;
    int   lwidth = 0;
    boolean prim_case = false;

    Environment f_env;
    if(fdef instanceof Closure) {
      f_env = ((Closure) fdef).getEnclosingEnvironment();
    } else if(fdef instanceof PrimitiveFunction) {
      fdef = R_primitive_generic(fdef);
      if(!(fdef instanceof Closure)) {
        throw new EvalException("Failed to get the generic for the primitive \"%s\"", fname.asString());
      }
      f_env = ((Closure) fdef).getEnclosingEnvironment();
      prim_case = true;       
    } else {
      throw new EvalException("Expected a generic function or a primitive for dispatch, " +
          "got an object of class \"%s\"", fdef.getImplicitClass());
    }
    SEXP mtable = f_env.getVariable(R_allmtable);
    if(mtable == Symbol.UNBOUND_VALUE) {
      do_mtable(fdef, ev); /* Should initialize the generic */       
      mtable = f_env.getVariable(R_allmtable);
    }
    SEXP sigargs = f_env.getVariable(R_sigargs);
    SEXP siglength = f_env.getVariable(R_siglength);

    if(sigargs == Symbol.UNBOUND_VALUE || siglength == Symbol.UNBOUND_VALUE ||
        mtable == Symbol.UNBOUND_VALUE) {       
      throw new EvalException("Generic \"%s\" seems not to have been initialized for table dispatch---need to have .SigArgs and .AllMtable assigned in its environment",
          fname.asString());
View Full Code Here

Examples of org.springframework.core.env.Environment

   */
  public BeanDefinition parse(Element element, ParserContext parser) {

    try {

      Environment environment = parser.getDelegate().getEnvironment();
      ResourceLoader resourceLoader = parser.getReaderContext().getResourceLoader();
      BeanDefinitionRegistry registry = parser.getRegistry();

      XmlRepositoryConfigurationSource configSource = new XmlRepositoryConfigurationSource(element, parser, environment);
      RepositoryConfigurationDelegate delegate = new RepositoryConfigurationDelegate(configSource, resourceLoader,
View Full Code Here

Examples of org.sugarj.common.Environment

    return null;
  }
 
  protected void clean(IProgressMonitor monitor) throws CoreException {
    File f = getProject().getLocation().append(JavaCore.create(getProject()).getOutputLocation().makeRelativeTo(getProject().getFullPath())).toFile();
    Environment environment = SugarJParseController.makeProjectEnvironment(getProject());
    try {
      FileCommands.delete(new AbsolutePath(f.getPath()));
      FileCommands.delete(environment.getParseBin());
      FileCommands.delete(environment.getCacheDir());
    } catch (IOException e) {
    }
   
  }
View Full Code Here

Examples of org.wsI.testing.x2003.x03.log.Environment

     * endpoint.getPort() > 0 ) redirect.setSchemeAndHostPort(
     * endpoint.getHost() + ":" + endpoint.getPort()); else
     * redirect.setSchemeAndHostPort( endpoint.getHost() );
     */

    Environment env = monitor.addNewEnvironment();
    NameVersionPair osConf = env.addNewOperatingSystem();
    osConf.setName( "Windows" );
    osConf.setVersion( "2003" );

    NameVersionPair rtConf = env.addNewRuntime();
    rtConf.setName( "java" );
    rtConf.setVersion( "1.5" );

    NameVersionPair xpConf = env.addNewXmlParser();
    xpConf.setName( "xmlbeans" );
    xpConf.setVersion( "2.1.0" );

    Implementation implConf = monitor.addNewImplementer();
    implConf.setName( "soapui" );
View Full Code Here

Examples of org.zkybase.model.Environment

  /* (non-Javadoc)
   * @see org.zkybase.web.controller.AbstractCrudController#doGetDetails(java.lang.Long, org.springframework.ui.Model)
   */
  @Override
  protected Environment doGetDetails(Long id, Model model) {
    model.addAttribute(farmService.findByEnvironment(new Environment(id)));
    return environmentService.findOne(id);
  }
View Full Code Here

Examples of reactor.core.Environment

    public static final String CLOUDBREAK_EVENT = "CLOUDBREAK_EVENT";

    @Bean
    public Environment env() {
        return new Environment();
    }
View Full Code Here

Examples of rice.environment.Environment

  }

  public void start() throws Exception {
    if (!started) {
      synchronized (this) {
        Environment env = new Environment();
        if (envProperties != null) {
          Enumeration e = envProperties.keys();
          while (e.hasMoreElements()) {
            String key = e.nextElement().toString();
            if (key.startsWith("pastry.")) {
              env.getParameters().setString(key.substring(7),
                  envProperties.getProperty(key));
            }
          }
        }
        NodeIdFactory idFactory = new RandomNodeIdFactory(env);
View Full Code Here

Examples of ru.yandex.qatools.commons.model.Environment

        return super.provide(testPack, inputDirectories, outputDirectory);
    }

    @Override
    protected <T> long serialize(File outputDirectory, Class<T> type, String name, Reader reader) {
        Environment global = JAXB.unmarshal(
                reader,
                Environment.class
        );

        for (File file : environmentXml) {
            try {
                Environment environment = JAXB.unmarshal(file, Environment.class);
                merge(global, environment);
            } catch (Exception e) {
                logger.error(format("Can't unmarshal environment file %s to environment bean.", file), 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.