Java 类org.eclipse.debug.core.model.ILaunchConfigurationDelegate 实例源码

项目:eclemma    文件:CoverageLauncher.java   
private ILaunchConfigurationDelegate getLaunchDelegate(String launchtype)
    throws CoreException {
  ILaunchConfigurationType type = DebugPlugin.getDefault().getLaunchManager()
      .getLaunchConfigurationType(launchtype);
  if (type == null) {
    throw new CoreException(
        EclEmmaStatus.UNKOWN_LAUNCH_TYPE_ERROR.getStatus(launchtype));
  }
  return type.getDelegates(Collections.singleton(DELEGATELAUNCHMODE))[0]
      .getDelegate();
}