Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/validators/String2FloatValidator.java
public String isPartiallyValid(Object fragment) {
		if (((String)fragment).matches("\\-?[0-9]*\\.?[0-9]*([0-9]+[e|E]\\-?([0-9]+\\.)?[0-9]*)?")) 
            return null;
        return getHint();
	}
    
    public String isValid(Object value) {
        try {
            Float.parseFloat((String)value);
            return null;
        } catch (Exception e) {
            return getHint();
        }
    }
	private String getHint() {
		return BindingMessages.getString("Validate_Like") +  
		BindingMessages.getString("Validate_Number_Examples") 
		+ Float.MIN_VALUE + 
		", " + Float.MAX_VALUE + "."; 
	}
}