|
Lines 14-19
Link Here
|
| 14 |
|
14 |
|
| 15 |
import java.io.IOException; |
15 |
import java.io.IOException; |
| 16 |
import java.util.ArrayList; |
16 |
import java.util.ArrayList; |
|
|
17 |
import java.util.HashSet; |
| 17 |
import java.util.List; |
18 |
import java.util.List; |
| 18 |
|
19 |
|
| 19 |
import org.eclipse.cdt.core.CCorePlugin; |
20 |
import org.eclipse.cdt.core.CCorePlugin; |
|
Lines 44-49
Link Here
|
| 44 |
import org.eclipse.core.runtime.Path; |
45 |
import org.eclipse.core.runtime.Path; |
| 45 |
import org.eclipse.debug.core.ILaunchConfiguration; |
46 |
import org.eclipse.debug.core.ILaunchConfiguration; |
| 46 |
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
47 |
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
|
|
48 |
import org.eclipse.debug.core.ILaunchDelegate; |
| 47 |
import org.eclipse.debug.ui.DebugUITools; |
49 |
import org.eclipse.debug.ui.DebugUITools; |
| 48 |
import org.eclipse.debug.ui.IDebugUIConstants; |
50 |
import org.eclipse.debug.ui.IDebugUIConstants; |
| 49 |
import org.eclipse.jface.dialogs.MessageDialog; |
51 |
import org.eclipse.jface.dialogs.MessageDialog; |
|
Lines 706-711
Link Here
|
| 706 |
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) |
708 |
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) |
| 707 |
*/ |
709 |
*/ |
| 708 |
public void setDefaults(ILaunchConfigurationWorkingCopy config) { |
710 |
public void setDefaults(ILaunchConfigurationWorkingCopy config) { |
|
|
711 |
HashSet<String> set = new HashSet<String>(); |
| 712 |
set.add(getLaunchConfigurationDialog().getMode()); |
| 713 |
try { |
| 714 |
ILaunchDelegate preferredDelegate = config.getPreferredDelegate(set); |
| 715 |
if (preferredDelegate == null) { |
| 716 |
config.setPreferredLaunchDelegate(set, "org.eclipse.cdt.cdi.launch.localCLaunch"); |
| 717 |
} |
| 718 |
} catch (CoreException e) {} |
| 719 |
|
| 709 |
// We set empty attributes for project & program so that when one config |
720 |
// We set empty attributes for project & program so that when one config |
| 710 |
// is |
721 |
// is |
| 711 |
// compared to another, the existence of empty attributes doesn't cause |
722 |
// compared to another, the existence of empty attributes doesn't cause |