1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 01:06:01 +02:00

fixed debugger selection

This commit is contained in:
David Inglis 2004-10-18 20:21:39 +00:00
parent a3f0a610ed
commit 801c17db2e

View file

@ -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.