Package org.eclipse.dltk.launching

Examples of org.eclipse.dltk.launching.InterpreterStandin


  }
 
  protected static void createFakeDeeInstall(String installTypeId, String installName, Path installExePath,
      boolean setAsDefault) {
    IInterpreterInstallType deeDmdInstallType = ScriptRuntime.getInterpreterInstallType(installTypeId);
    InterpreterStandin install = new InterpreterStandin(deeDmdInstallType, installName + ".id");
   
    assertTrue(installExePath.toFile().exists());
   
    install.setInstallLocation(new LazyFileHandle(LocalEnvironment.ENVIRONMENT_ID,
      new org.eclipse.core.runtime.Path(installExePath.toString())));
    install.setName(installName);
    install.setInterpreterArgs(null);
    install.setLibraryLocations(null); // Use default locations
    IInterpreterInstall realInstall = install.convertToRealInterpreter();
    if(setAsDefault) {
      try {
        ScriptRuntime.setDefaultInterpreterInstall(realInstall, null);
      } catch(CoreException e) {
        throw melnorme.utilbox.core.ExceptionAdapter.unchecked(e);
View Full Code Here


      return;
    }
    // Note: there can be multiple installs in same location if all have different compiler type.
   
    String installName = "AUTO@" + compilerLocation.getPath().toString();
    InterpreterStandin install = new InterpreterStandin(installType, installName);
   
    install.setInstallLocation(compilerLocation);
    install.setName(installName);
    install.setInterpreterArgs(null);
    install.setLibraryLocations(installType.getDefaultLibraryLocations(compilerLocation));
   
    foundInstalls.add(install);
  }
View Full Code Here

    String id = null;
    do {
      id = String.valueOf(System.currentTimeMillis());
    } while (type.findInterpreterInstall(id) != null);

    IInterpreterInstall install = new InterpreterStandin(type, id);
    install.setInstallLocation(
        new LazyFileHandle(env.getId(), new Path(interpreterPath)));
    install.setName(name);
    install.setLibraryLocations(libs);
    install.setInterpreterArgs(null); // future use
    install = ((InterpreterStandin)install).convertToRealInterpreter();
    interpreters.add(install);

    if(deflt == null){
      deflt = install;
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.launching.InterpreterStandin

Copyright © 2018 www.massapicom. 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.