|
Lines 48-54
Link Here
|
| 48 |
import org.eclipse.debug.core.ILaunchConfiguration; |
48 |
import org.eclipse.debug.core.ILaunchConfiguration; |
| 49 |
import org.eclipse.debug.core.ILaunchConfigurationType; |
49 |
import org.eclipse.debug.core.ILaunchConfigurationType; |
| 50 |
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
50 |
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
| 51 |
import org.eclipse.debug.core.ILaunchDelegate; |
|
|
| 52 |
import org.eclipse.debug.core.ILaunchManager; |
51 |
import org.eclipse.debug.core.ILaunchManager; |
| 53 |
import org.eclipse.debug.ui.DebugUITools; |
52 |
import org.eclipse.debug.ui.DebugUITools; |
| 54 |
import org.eclipse.debug.ui.IDebugModelPresentation; |
53 |
import org.eclipse.debug.ui.IDebugModelPresentation; |
|
Lines 207-214
Link Here
|
| 207 |
try { |
206 |
try { |
| 208 |
HashSet<String> set = new HashSet<String>(); |
207 |
HashSet<String> set = new HashSet<String>(); |
| 209 |
set.add(ILaunchManager.RUN_MODE); |
208 |
set.add(ILaunchManager.RUN_MODE); |
| 210 |
ILaunchDelegate preferredDelegate = wc.getPreferredDelegate(set); |
209 |
if (wc.getPreferredDelegate(set) == null && wc.getType().getPreferredDelegate(set) == null) { |
| 211 |
if (preferredDelegate == null) { |
|
|
| 212 |
wc.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_RUN_LAUNCH_DELEGATE); |
210 |
wc.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_RUN_LAUNCH_DELEGATE); |
| 213 |
} |
211 |
} |
| 214 |
} catch (CoreException e) {} |
212 |
} catch (CoreException e) {} |
|
Lines 218-225
Link Here
|
| 218 |
try { |
216 |
try { |
| 219 |
HashSet<String> set = new HashSet<String>(); |
217 |
HashSet<String> set = new HashSet<String>(); |
| 220 |
set.add(ILaunchManager.DEBUG_MODE); |
218 |
set.add(ILaunchManager.DEBUG_MODE); |
| 221 |
ILaunchDelegate preferredDelegate = wc.getPreferredDelegate(set); |
219 |
if (wc.getPreferredDelegate(set) == null && wc.getType().getPreferredDelegate(set) == null) { |
| 222 |
if (preferredDelegate == null) { |
|
|
| 223 |
wc.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_DEBUG_LOCAL_LAUNCH_DELEGATE); |
220 |
wc.setPreferredLaunchDelegate(set, ICDTLaunchConfigurationConstants.PREFERRED_DEBUG_LOCAL_LAUNCH_DELEGATE); |
| 224 |
} |
221 |
} |
| 225 |
} catch (CoreException e) {} |
222 |
} catch (CoreException e) {} |