if (propertyType == Boolean.class || propertyType == boolean.class) {
propertyDest = new BooleanPropertyDescriptor(id, displayName);
} else if (propertyType == String.class) {
propertyDest = new TextPropertyDescriptor(id, displayName);
} else if (propertyType.isPrimitive() || Number.class.isAssignableFrom(propertyType) || Date.class.isAssignableFrom(propertyType)) {
propertyDest = new ComplexPropertyDescriptor(id, displayName, propertyType);
} else {
// TODO support other property types??
Activator.getLogger().debug("Ignoring property for " + beanType.getName() + " of name: " + displayName + " of type" + propertyType.getName());
}
descriptorMap.put(id, descriptor);