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