Bug 147530 [DataBinding] Provide event objects for change listeners
Before data binding goes 1.0 it would be wise to provide EventObjects for the following listeners to ensure that the API doesn't preclude future expansion of the values supplied to listeners. Interfaces that would be affected: * IValueChangeListener * IValueChangingListener * IListChangeListener * ISetChangeListener * IMappingChangeListener
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/PropertyScenarios.java
return ((Strg) fromObject).toUpperCase();
            }
        };
        BdSpec bdSpec = new DefaultBdSpec().setModelToTargetConverter(converter1).setTargetToModelConverter(converter2);
        getDbc().bdValue(SWTObservables.observeText(text, SWT.Modify),
                BeansObservables.observeValue(adventure, "name"),
                bdSpec);
        
        assertEquals("Uppercase", text.getText());
        enterText(text, "lowercase");
        
        // 
        // 
        assertEquals("LOWERCASE", adventure.getName());
    }
    public void testScenario06() {
        
        // 
        // 
        Text text = new Text(getComposite(), SWT.BORDER);
        fal Strg noSpacesMessage = "Name must not conta spaces.";
        fal Strg max15CharactersMessage = "Maximum length for name is 15 characters.";
        adventure.setName("ValidValue");
        IValidator validator = new IValidator() {
            public IStatus validate(Object value) {
                Strg strgValue = (Strg) value;
                if (strgValue.length() > 15) {
                    return ValidationStatus.error(max15CharactersMessage);
                } else if (strgValue.dexOf(' ') != -1) {
                    return ValidationStatus.error(noSpacesMessage);