Bug 167450 [DataBinding] Get rid of bind support factory magic
I finally realized that we don't need that other magic factory. I'll move fillBindSpecDefaults() and the methods it calls (createConverter, createValidator etc) to a new class DefaultBindSpec. Clients who want default validators and converters created for them just create a DefaultBindSpec as opposed to a (rather empty) BindSpec. I will also move the early type checking into DefaultBindSpec to make it optional as well.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/TextControlScenario.java
}
    public void testScenario02() {
        
        
        
        
        
        getDbc().bindValue(SWTObservables.observeText(text, SWT.Modify),
                BeansObservables.observeValue(transportation, "price"),
                null);
        assertEquals(Double.toString(transportation.getPrice()), text.getText());
        text.setText("9876.54");
        text.notifyListeners(SWT.FocusOut, null);
        assertEquals(9876.54, transportation.getPrice(), 0);
        transportation.setPrice(1234.56);
        assertEquals("1234.56", text.getText());
    }
    public void testScenario03() {
        
        
        
        
        getDbc().bindValue(SWTObservables.observeText(text, SWT.FocusOut),
                BeansObservables.observeValue(adventure, "name"),
                null);
        String currentText = text.getText();
        text.setText("Switzerland");
        
        
        assertEquals(currentText, adventure.getName());