}
@Override
protected void build(Map<String, Param> defParams, Map<String, String> configParams) {
for (String name : defParams.keySet()) {
Param param = defParams.get(name);
Label label = new Label(this, SWT.NONE);
label.setText(param.getDisplayName());
label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Combo combo = new Combo(this, SWT.READ_ONLY);
combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
combo.addSelectionListener(this);
String textData = configParams.get(name);
if (Param.BOOLEAN_TYPE.equals(param.getType())) {
combo.add(""); // default
combo.add("true");
combo.add("false");
} else {
if (textData != null) {
combo.add(textData);
combo.setData(DATA_KEY, textData);
}
combo.add(""); // default
combo.add(INPUT_VALUE);
}
if (textData != null) {
combo.setText(textData);
}
combo.setData(TYPE_KEY, param.getType());
inputCombos.put(name, combo);
}
this.pack(true);
}