// now make an array of names
String[] names = new String[phpExecutables.size()];
final Iterator<PHPexeItem> iter = phpExecutables.iterator();
int i = 0;
while (iter.hasNext()) {
final PHPexeItem item = iter.next();
names[i] = item.getName()
+ " (" + item.getExecutable().toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
i++;
}
if (names.length == 0) {
names = new String[] { PHPDebugUIMessages.PhpDebugPreferencePage_noExeDefined };
}
fExecutablesCombo.setItems(names);
PHPexeItem defaultExe = exes.getDefaultItem(getSelectedDebuggerId());
if (defaultExe != null) {
String defaultName = defaultExe.getName()
+ " (" + defaultExe.getExecutable().toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
fExecutablesCombo.select(fExecutablesCombo.indexOf(defaultName));
} else {
fExecutablesCombo.select(0);
}
}