From ef1cb915f1fec5bbc655ae80d856b406916ded52 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 30 Jan 2006 22:46:16 +0000 Subject: [PATCH] Bug 124519: CDT launch shortcuts ignore Common Tabs "Launch in background" option. Applied patch from Andrew Ferguson (andrew.ferguson@arm.com). --- launch/org.eclipse.cdt.launch/ChangeLog | 5 +++++ .../internal/CApplicationLaunchShortcut.java | 16 ++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/launch/org.eclipse.cdt.launch/ChangeLog b/launch/org.eclipse.cdt.launch/ChangeLog index e0542472738..c14f47922f5 100644 --- a/launch/org.eclipse.cdt.launch/ChangeLog +++ b/launch/org.eclipse.cdt.launch/ChangeLog @@ -1,3 +1,8 @@ +2006-01-30 Mikhail Khodjaiants + Bug 124519: CDT launch shortcuts ignore Common Tabs "Launch in background" option. + Applied patch from Andrew Ferguson (andrew.ferguson@arm.com). + * CApplicationLaunchShortcut.java + 2006-01-30 Mikhail Khodjaiants Bug 123997: launching subclasses of AbstractCLaunchDelegate causes progress information to be lost. Applied patch from Andrew Ferguson (andrew.ferguson@arm.com). diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java index 25dec707127..6bc3b79263d 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java @@ -67,16 +67,12 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut { } public void launch(IBinary bin, String mode) { - try { - ILaunchConfiguration config = findLaunchConfiguration(bin, mode); - if (config != null) { - DebugUITools.saveAndBuildBeforeLaunch(); - config.launch(mode, null); - } - } catch (CoreException e) { - LaunchUIPlugin.errorDialog(LaunchMessages.getString("CApplicationLaunchShortcut.LaunchFailed"), e.getStatus()); //$NON-NLS-1$ - } - } + ILaunchConfiguration config = findLaunchConfiguration(bin, mode); + if (config != null) { + DebugUITools.saveAndBuildBeforeLaunch(); + DebugUITools.launch(config, mode); + } + } /** * Locate a configuration to relaunch for the given type. If one cannot be found, create one.