Bug 118429 [DataBinding] Validation should use IStatus, not just Strings
In order to use data binding in Workbench or IDE dialogs and preference pages, we need validation in terms of IStatus objects. Using strings is too simplistic. For example, look at the wizard for creating a new class. You will get a warning if the class name does not start with an uppercase letter, or if you don't provide a package name, but you will still be able to click "Finish" to proceed anyway. (Note that IStatus is currently not on the classpath, we need to re-introduce the dependency on org.eclipse.equinox.common, which contains IStatus etc.)
bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/validation/RegexStringValidator.java
private Pattern fragmentRegex;
    private Pattern fullValueRegex;
    private String hint;
    
	/**
     * Constructor RegularExpressionValidator.  Construct a string validator based on regular
     * expressions.
     * 
     * Verify input using regular expressions.
     * 
	 * @param partiallyValidRegex A regex that matches iff the value is partially valid
	 * @param fullyValidRegex A regex that matches iff the value is fully valid
	 * @param hint The hint to display if the value is invalid