diff options
author | Marc Khouzam | 2010-05-14 02:18:31 +0000 |
---|---|---|
committer | Marc Khouzam | 2010-05-14 02:18:31 +0000 |
commit | eb382a9beec8dd7aae5917450a230165864c53bb (patch) | |
tree | d2b80a36312e1178e4386d691324200600967049 /launch | |
parent | 845e51b0a51bb09583c9f2a6df1ad5219afe62e7 (diff) | |
download | org.eclipse.cdt-eb382a9beec8dd7aae5917450a230165864c53bb.tar.gz org.eclipse.cdt-eb382a9beec8dd7aae5917450a230165864c53bb.tar.xz org.eclipse.cdt-eb382a9beec8dd7aae5917450a230165864c53bb.zip |
Bug 304384: Move logic to set default launch delegate to the tab of the DSF-GDB delegate. This is to allow the global preference for launch delegate not to be overridden unless DSF-GDB is also the global preference.
Diffstat (limited to 'launch')
-rw-r--r-- | launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java index 93a618d4155..47c37a1875f 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java @@ -12,8 +12,6 @@ *******************************************************************************/ package org.eclipse.cdt.launch.ui; -import java.util.HashSet; - import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.model.IBinary; import org.eclipse.cdt.core.model.ICElement; @@ -34,8 +32,6 @@ import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; -import org.eclipse.debug.core.ILaunchDelegate; -import org.eclipse.debug.core.ILaunchManager; import org.eclipse.debug.ui.DebugUITools; import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.jface.dialogs.MessageDialog; @@ -534,33 +530,6 @@ public class CMainTab extends CAbstractMainTab { * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) */ public void setDefaults(ILaunchConfigurationWorkingCopy config) { - - // Workaround for bug 262840 - try { - HashSet<String> set = new HashSet<String>(); - set.add(ILaunchManager.DEBUG_MODE); - ILaunchDelegate preferredDelegate = config.getPreferredDelegate(set); - if (preferredDelegate == null) { - if (config.getType().getIdentifier().equals(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_APP)) { - config.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_DEBUG_LOCAL_LAUNCH_DELEGATE); - } else if (config.getType().getIdentifier().equals(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_ATTACH)) { - config.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_DEBUG_ATTACH_LAUNCH_DELEGATE); - } else if (config.getType().getIdentifier().equals(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_POST_MORTEM)) { - config.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_DEBUG_POSTMORTEM_LAUNCH_DELEGATE); - } - } - } catch (CoreException e) {} - - // We must also set the preferred delegate for Run mode, because this configuration - // can be used in Run mode. - try { - HashSet<String> set = new HashSet<String>(); - set.add(ILaunchManager.RUN_MODE); - ILaunchDelegate preferredDelegate = config.getPreferredDelegate(set); - if (preferredDelegate == null) { - config.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_RUN_LAUNCH_DELEGATE); - } - } catch (CoreException e) {} // We set empty attributes for project & program so that when one config // is |