Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/converters/IdentityConverter.java
/**
	 * @param type
	 */
	public IdentityConverter(Class type) {
		super(type, type);
	}
	/**
	 * useful for converting between, e.g., Integer.class and int.class
	 * 
	 * @param targetType
	 * @param modelType
	 */
	public IdentityConverter(Class targetType, Class modelType) {
		super(targetType, modelType);
	}
	public Object convertTargetToModel(Object object) {
		if (getModelType().equals(String.class) && object == null) {
			return ""; 
		}
		return object;
	}
	public Object convertModelToTarget(Object object) {
		if (getTargetType().equals(String.class) && object == null) {
			return ""; 
		}
		return object;
	}
}