示例#1
0
  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;
  }
示例#2
0
 public IEquinoxVersionHandler getVersionHandler() {
   IRuntimeType type = getRuntime().getRuntimeType();
   return EquinoxPlugin.getEquinoxVersionHandler(type.getId());
 }
示例#3
0
 public IFelixVersionHandler getVersionHandler() {
   IRuntimeType type = getRuntime().getRuntimeType();
   return FelixPlugin.getFelixVersionHandler(type.getId());
 }