Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2016-04-16 14:25:38 -0400
committerSarika Sinha2016-04-16 14:25:38 -0400
commitf526797aa48b1a05bae915958dda0bbc49aa0231 (patch)
tree1b990a6111b886ab5b95282c02f5590f64296771 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parentf11a8af2a6470b63524d9d14b8110a09850e5dce (diff)
downloadeclipse.platform.debug-f526797aa48b1a05bae915958dda0bbc49aa0231.tar.gz
eclipse.platform.debug-f526797aa48b1a05bae915958dda0bbc49aa0231.tar.xz
eclipse.platform.debug-f526797aa48b1a05bae915958dda0bbc49aa0231.zip
Bug 487554 - Add "Terminate and Relaunch" to menu and toolbarI20160419-0800I20160417-1112
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAction.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAction.java
index 4321268cf..8b8500256 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAction.java
@@ -15,6 +15,8 @@ import java.util.ArrayList;
import java.util.Set;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunch;
@@ -33,6 +35,7 @@ import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialogWithToggle;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.ui.PlatformUI;
@@ -93,7 +96,7 @@ public class LaunchAction extends Action {
try {
iLaunch.terminate();
} catch (DebugException e) {
- e.printStackTrace();
+ DebugUIPlugin.log(new Status(IStatus.ERROR, DebugUIPlugin.getUniqueIdentifier(), NLS.bind(ActionMessages.TerminateAndLaunchFailure, iLaunch.getLaunchConfiguration().getName()), e));
}
}
}

Back to the top