KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > model > ILaunchConfigurationDelegate


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.core.model;
12
13
14 import org.eclipse.core.runtime.CoreException;
15 import org.eclipse.core.runtime.IProgressMonitor;
16 import org.eclipse.debug.core.ILaunch;
17 import org.eclipse.debug.core.ILaunchConfiguration;
18
19 /**
20  * A launch configuration delegate performs launching for a
21  * specific type of launch configuration. A launch configuration
22  * delegate is defined by the <code>delegate</code> attribute
23  * of a <code>launchConfigurationType</code> extension.
24  * <p>
25  * This interface is intended to be implemented by clients.
26  * </p>
27  * @see org.eclipse.debug.core.ILaunchConfigurationType
28  * @see ILaunchConfiguration
29  * @since 2.0
30  */

31 public interface ILaunchConfigurationDelegate {
32     
33     /**
34      * Launches the given configuration in the specified mode, contributing
35      * debug targets and/or processes to the given launch object. The
36      * launch object has already been registered with the launch manager.
37      *
38      * @param configuration the configuration to launch
39      * @param mode the mode in which to launch, one of the mode constants
40      * defined by <code>ILaunchManager</code> -
41      * <code>RUN_MODE</code> or <code>DEBUG_MODE</code>.
42      * @param monitor progress monitor, or <code>null</code>
43      * @param launch the launch object to contribute processes and debug
44      * targets to
45      * @exception CoreException if launching fails
46      */

47     public void launch(ILaunchConfiguration configuration, String JavaDoc mode, ILaunch launch, IProgressMonitor monitor) throws CoreException;
48     
49 }
50
Popular Tags