* @param dynamicWidget The widget object being created
* @param annotation The annotation onthe property
* @param property The bean property widget is for
*/
protected void buildDynamicWidgetCollection(DynamicWidget dynamicWidget, SWTWidget annotation, Field property) {
SWTEntity propAnno = property.getType().getAnnotation(SWTEntity.class);
if(propAnno == null) {
log.error("Unable to build a SWT widget collection from non SWTEntity annotated objects. Bean property: " +property.getName());
buildDynamicWidget(dynamicWidget, annotation, property);
return;
}
SWTEntity.Type collectionType = propAnno.defaultCollectionType();
dynamicWidget.widgetPropertyMappingDefinition = defaultConverterMap.get(property.getType());
dynamicWidget.widget = (Control)defaultConverterMap.get(property.getType()).createWidget(this);
}