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/scenarios/PropertyScenarios.java
}
    public void testScenario11() {
        // Bdi
        Spner spner1 = new Spner(getComposite(), SWT.NONE);
        spner1.setSelection(10);
        spner1.setMimum(1);
        spner1.setMaximum(100);
        Spner spner2 = new Spner(getComposite(), SWT.NONE);
        spner2.setMaximum(1);
        getDbc().bdValue(SWTObservables.observeSelection(spner1), SWTObservables.observeMax(spner2), null);
        assertEquals(1, spner1.getSelection());
        spner1.setSelection(10);
        spner1.notifyListeners(SWT.Modify, new Event());
        assertEquals(10, spner2.getMaximum());
    }
    public void testScenario12() {
        // Bdi
        // There 
        // other 
        Button checkbox1 = new Button(getComposite(), SWT.CHECK);
        checkbox1.setSelection(false);
        Button checkbox2 = new Button(getComposite(), SWT.CHECK);
        checkbox2.setSelection(false);
        Text text1 = new Text(getComposite(), SWT.NONE);
        Text text2 = new Text(getComposite(), SWT.NONE);
        IObservableValue checkbox1Selected = SWTObservables.observeSelection(checkbox1);
        IObservableValue checkbox2Selected = SWTObservables.observeSelection(checkbox2);
        // bd 
        // and v
        Converter negatgConverter = new Converter(boolean.class, boolean.class) {