Map<String, Object> values = f.getAlgorithmParameterStandardValues();
if (params != null) {
for (int i = 0; i < params.length; i++) {
TextRulerLearnerParameter p = params[i];
String id = algorithmController.getID() + "." + p.id;
FieldEditor l = null;
switch (p.type) {
case ML_BOOL_PARAM: {
l = new BooleanFieldEditor(id, p.name, getFieldEditorParent());
fields.add(l);
addField(l);
store.setDefault(id, (Boolean) values.get(p.id));
l.setPreferenceStore(store);
break;
}
case ML_FLOAT_PARAM:
case ML_DOUBLE_PARAM:
case ML_INT_PARAM:
case ML_STRING_PARAM: {
l = new StringFieldEditor(id, p.name, getFieldEditorParent());
fields.add(l);
addField(l);
store.setDefault(id, values.get(p.id).toString());
l.setPreferenceStore(store);
break;
}
// case ML_SELECT_PARAM: {
// Combo combo = new Combo(top, SWT.READ_ONLY);
// if (p.selectValues != null)