}
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);