Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorDavid Inglis2004-10-18 16:21:39 -0400
committerDavid Inglis2004-10-18 16:21:39 -0400
commit801c17db2eaa784898549ba6c8641b825b279750 (patch)
tree85ce8c549648031c11affd71ffce2b04f7d20087 /launch
parenta3f0a610ed7421e61bab502f914d300c8a1c6143 (diff)
downloadorg.eclipse.cdt-801c17db2eaa784898549ba6c8641b825b279750.tar.gz
org.eclipse.cdt-801c17db2eaa784898549ba6c8641b825b279750.tar.xz
org.eclipse.cdt-801c17db2eaa784898549ba6c8641b825b279750.zip
fixed debugger selection
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/AbstractCDebuggerTab.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/AbstractCDebuggerTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/AbstractCDebuggerTab.java
index 004275d5927..ae1fe4d5837 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/AbstractCDebuggerTab.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/AbstractCDebuggerTab.java
@@ -268,14 +268,19 @@ public abstract class AbstractCDebuggerTab extends CLaunchConfigurationTab {
protected void loadDebuggerCombo(ICDebugConfiguration[] debugConfigs, String current) {
fDCombo.removeAll();
-
+ int select = -1;
for (int i = 0; i < debugConfigs.length; i++) {
fDCombo.add(debugConfigs[i].getName());
fDCombo.setData(Integer.toString(i), debugConfigs[i]);
+ if (debugConfigs[i].getID().equalsIgnoreCase(current)) {
+ select = i;
+ }
}
fPageUpdated = false;
- fDCombo.setText(current);
+ if (select != -1) {
+ fDCombo.select(select);
+ }
//The behaviour is undefined for if the callbacks should be triggered
// for this,
//so force page update if needed.

Back to the top