targetToSource = new UpdateValueStrategy(
UpdateValueStrategy.POLICY_UPDATE);
}
// Add converter to UpdateValueStrategy.
IDataProvider sourceDataProvider = XWT.findDataProvider(source);
Object sourceValueType = sourceDataProvider.getDataType(null);
if (sourceValueType == null) {
sourceValueType = Object.class;
}
IDataProvider targetDataProvider = XWT.findDataProvider(target);
Object targetValueType = targetDataProvider.getDataType(null);
if (targetValueType == null) {
targetValueType = Object.class;
}
Class<?> sourceType = (sourceValueType instanceof Class<?>) ? (Class<?>) sourceValueType
: sourceValueType.getClass();