public static IRuntimeWorkingCopy getRuntime(String runtimeTypeId, IPath location) { IRuntimeType runtimeType = ServerCore.findRuntimeType(runtimeTypeId); try { IRuntime runtime = runtimeType.createRuntime("runtime", null); IRuntimeWorkingCopy runtimeWC = runtime.createWorkingCopy(); runtimeWC.setName("Runtime"); runtimeWC.setLocation(location); return runtimeWC; } catch (CoreException e) { e.printStackTrace(); } return null; }
public IEquinoxVersionHandler getVersionHandler() { IRuntimeType type = getRuntime().getRuntimeType(); return EquinoxPlugin.getEquinoxVersionHandler(type.getId()); }
public IFelixVersionHandler getVersionHandler() { IRuntimeType type = getRuntime().getRuntimeType(); return FelixPlugin.getFelixVersionHandler(type.getId()); }