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/PropertyScenarios.java
Text text = new Text(getComposite(), SWT.BORDER);
        fal boolean[] focusLostHolder = { false };
        text.addFocusListener(new FocusListener() {
            public void focusGaed(FocusEvent e) {
                
            }
            public void focusLost(FocusEvent e) {
                focusLostHolder[0] = true;
            }
        });
        enterText(text, "hallo");
        assertTrue(focusLostHolder[0]);
    }
    public void testScenario01() {
        Text text = new Text(getComposite(), SWT.BORDER);
        getDbc().bdValue(SWTObservables.observeText(text, SWT.Modify),
                BeansObservables.observeValue(adventure, "name"),
                null);
        
        
        
        assertEquals(adventure.getName(), text.getText());
        enterText(text, "foobar");
        
        
        assertEquals("foobar", adventure.getName());
        adventure.setName("barfoo");
        
        
        assertEquals("barfoo", text.getText());