Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2006-07-21 18:28:42 -0400
committerDarin Swanson2006-07-21 18:28:42 -0400
commitf4f19413c04a35c131805262bde825810dfad933 (patch)
treeeb345a4eb8d27222a73c95cafdbe4127d92351cb
parentff7ec19f4e0b360c4be17eca133551080c65e645 (diff)
downloadeclipse.platform.debug-f4f19413c04a35c131805262bde825810dfad933.tar.gz
eclipse.platform.debug-f4f19413c04a35c131805262bde825810dfad933.tar.xz
eclipse.platform.debug-f4f19413c04a35c131805262bde825810dfad933.zip
Bug 146298 - [launching] Eclipse does not ask to save dirty editors before running an external program
-rw-r--r--org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java b/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java
index f49bd15b3..a7efdbcd4 100644
--- a/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java
+++ b/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java
@@ -26,8 +26,8 @@ import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationType;
import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.core.model.ILaunchConfigurationDelegate;
import org.eclipse.debug.core.model.IProcess;
+import org.eclipse.debug.core.model.LaunchConfigurationDelegate;
import org.eclipse.debug.ui.CommonTab;
import org.eclipse.debug.ui.RefreshTab;
import org.eclipse.jface.dialogs.MessageDialog;
@@ -41,9 +41,9 @@ import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants;
/**
* Launch delegate for a program.
*/
-public class ProgramLaunchDelegate implements ILaunchConfigurationDelegate {
+public class ProgramLaunchDelegate extends LaunchConfigurationDelegate {
- private static IWindowListener windowListener;
+ private static IWindowListener fWindowListener;
/**
* A window listener that warns the user about any running programs when
@@ -145,9 +145,9 @@ public class ProgramLaunchDelegate implements ILaunchConfigurationDelegate {
return;
}
- if (windowListener == null) {
- windowListener= new ProgramLaunchWindowListener();
- PlatformUI.getWorkbench().addWindowListener(windowListener);
+ if (fWindowListener == null) {
+ fWindowListener= new ProgramLaunchWindowListener();
+ PlatformUI.getWorkbench().addWindowListener(fWindowListener);
}
Process p = DebugPlugin.exec(cmdLine, workingDir, envp);
IProcess process = null;

Back to the top