Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2002-03-08 20:45:36 +0000
committerDarin Wright2002-03-08 20:45:36 +0000
commit4ed502d61d5cf038e2c6f75ea9646989ac7d4909 (patch)
tree11a6bf703855a9457843eaddd47d967bb01c0296 /org.eclipse.debug.core/core
parent93bda915f22ad2023c51136732725fe0accfb284 (diff)
downloadeclipse.platform.debug-4ed502d61d5cf038e2c6f75ea9646989ac7d4909.tar.gz
eclipse.platform.debug-4ed502d61d5cf038e2c6f75ea9646989ac7d4909.tar.xz
eclipse.platform.debug-4ed502d61d5cf038e2c6f75ea9646989ac7d4909.zip
launching API changes - progress monitor
Diffstat (limited to 'org.eclipse.debug.core/core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfiguration.java4
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/model/ILaunchConfigurationDelegate.java4
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java7
3 files changed, 10 insertions, 5 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfiguration.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfiguration.java
index 6bdbe9c37..cde4df66f 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfiguration.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/ILaunchConfiguration.java
@@ -12,6 +12,7 @@ import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
/**
* Note: This interface is yet experimental.
@@ -72,6 +73,7 @@ public interface ILaunchConfiguration extends IAdaptable {
*
* @param mode the mode in which to launch, one of the mode constants
* defined by this interface - <code>RUN</code> or <code>DEBUG</code>.
+ * @param monitor progress monitor, or <code>null</code>
* @return the resulting launch object, or <code>null</code> if the
* launch is not completed.
* @exception CoreException if this method fails. Reasons include:<ul>
@@ -79,7 +81,7 @@ public interface ILaunchConfiguration extends IAdaptable {
* <li>the launch fails</code>
* </ul>
*/
- public ILaunch launch(String mode) throws CoreException;
+ public ILaunch launch(String mode, IProgressMonitor monitor) throws CoreException;
/**
* Returns whether this launch configuration supports the
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/model/ILaunchConfigurationDelegate.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/model/ILaunchConfigurationDelegate.java
index d8516704e..e02b9e7c8 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/model/ILaunchConfigurationDelegate.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/model/ILaunchConfigurationDelegate.java
@@ -6,6 +6,7 @@ package org.eclipse.debug.core.model;
*/
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
@@ -43,10 +44,11 @@ public interface ILaunchConfigurationDelegate {
* @param mode the mode in which to launch, one of the mode constants
* defined by this <code>ILaunchConfiguration</code> -
* <code>RUN</code> or <code>DEBUG</code>.
+ * @param monitor progress monitor, or <code>null</code>
* @return the resulting launch object, or <code>null</code> if the
* launch is not completed.
* @exception CoreException if launching fails
*/
- public ILaunch launch(ILaunchConfiguration configuration, String mode) throws CoreException;
+ public ILaunch launch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException;
}
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java
index 83aeb35e0..3a9a6e474 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfiguration.java
@@ -14,6 +14,7 @@ import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.core.runtime.Status;
import org.eclipse.debug.core.DebugException;
@@ -48,10 +49,10 @@ public class LaunchConfiguration extends PlatformObject implements ILaunchConfig
}
/**
- * @see ILaunchConfiguration#launch(String)
+ * @see ILaunchConfiguration#launch(String, IProgressMonitor)
*/
- public ILaunch launch(String mode) throws CoreException {
- ILaunch launch = getDelegate().launch(this, mode);
+ public ILaunch launch(String mode, IProgressMonitor montior) throws CoreException {
+ ILaunch launch = getDelegate().launch(this, mode, montior);
if (launch != null) {
getLaunchManager().addLaunch(launch);
}

Back to the top