field.setToolTip(attr.getDescription());
return field;
} else if (IAttributeRuntimeValueType.CLASSPATH_RESOURCE.equals(type) ||
IAttributeRuntimeValueType.RESOURCEBUNDLE.equals(type)) {
ClasspathResourceButtonDialogField field = new ClasspathResourceButtonDialogField();
field.setRequired(attr.isRequired());
field.setToolTip(attr.getDescription());
field.setLabelText(attr.getLabel());
return field;
} else if (IAttributeRuntimeValueType.CSSSTYLE.equalsIgnoreCase(type)) {
// String param = getParamterValue(attr, "style");
// if (!"STYLE".equalsIgnoreCase(param)) {
// return null;
// }
StyleButtonDialogField field = new StyleButtonDialogField();
field.setRequired(attr.isRequired());
field.setToolTip(attr.getDescription());
field.setLabelText(attr.getLabel());
return field;
// // if there is no type or type unknown, then we just return null. and
// // system will
// // create default (text cell editor).
} else if (pvs != null && pvs.getPossibleValues().size() > 0) {
MDEnabledComboDialogField field = new MDEnabledComboDialogField(SWT.None);
field.setLabelText(attr.getLabel());
field.setToolTip(attr.getDescription());
field.setRequired(attr.isRequired());
return field;
}
return null;
}