01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.dso.launch;
06:
07: import org.eclipse.core.runtime.CoreException;
08: import org.eclipse.core.runtime.IProgressMonitor;
09: import org.eclipse.debug.core.ILaunch;
10: import org.eclipse.debug.core.ILaunchConfiguration;
11: import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
12: import org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate;
13:
14: /**
15: * Launcher for DSO JUnit tests.
16: */
17:
18: public class DSOJUnitLaunchConfiguration extends
19: JUnitLaunchConfigurationDelegate implements IDSOLaunchDelegate {
20:
21: private LaunchHelper fLaunchHelper = new LaunchHelper(this );
22:
23: public void launch(ILaunchConfiguration config, String mode,
24: ILaunch launch, IProgressMonitor monitor)
25: throws CoreException {
26: ILaunchConfigurationWorkingCopy wc = fLaunchHelper.setup(
27: config, mode, launch, monitor);
28: if (wc != null) {
29: super.launch(wc, mode, launch, monitor);
30: }
31: }
32: }
|