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.)
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindSpecTests.java
protected BindSpecExt(IConverter[] modelToTargetConverter, IConverter[] targetToModelConverter,
                IValidator[] targetValidator, IDomainValidator domainValidator, Integer modelUpdatePolicy,
                Integer validatePolicy, Integer targetUpdatePolicy) {
            super(modelToTargetConverter,
                    targetToModelConverter,
                    targetValidator,
                    domainValidator,
                    modelUpdatePolicy,
                    validatePolicy,
                    targetUpdatePolicy);
        }
    }
    /**
     * Asserts that when a validator is set it will always be the sole validator
     * and will remove any existing validators.
     */
    public void testSetValidator() {
        BindSpec spec = new BindSpec();
        IValidator v1 = new Validator();
        IValidator v2 = new Validator();
        spec.setValidators(new IValidator[] { v1, v2 });
        assertEquals(2, spec.getTypeConversionValidators().length);
        IValidator v3 = new Validator();
        spec.setValidator(v3);
        assertEquals(1, spec.getTypeConversionValidators().length);
        assertSame(v3, spec.getTypeConversionValidator());
        assertSame(v3, spec.getTypeConversionValidators()[0]);
    }
    /**
     * Asserts that when <code>null</code> getTypeConverstionValidator() will