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
} else {
                    return Status.OK_STATUS;
                }
            }
        };
        BdSpec bdSpec = new DefaultBdSpec().setModelToTargetConverter(new IdentityConverter(Strg.class))
                .setTargetToModelConverter(new IdentityConverter(Strg.class))
                .setPartialTargetValidator(validator);
        Bdg bdg = getDbc().bdValue(SWTObservables.observeText(text, SWT.Modify),
                BeansObservables.observeValue(adventure, "name"),
                bdSpec);
        // 
        assertTrue(((IStatus)bdg.getPartialValidationStatus().getValue()).isOK());
        enterText(text, "Invalid Value");
        assertEquals(noSpacesMessage, ((IStatus) bdg.getPartialValidationStatus().getValue()).getMessage());
        assertEquals("ValidValue", text.getText());
        text.setText("InvalidValueBecauseTooLong");
        assertEquals(max15CharactersMessage,
                ((IStatus) bdg.getPartialValidationStatus().getValue()).getMessage());
        assertEquals("ValidValue", text.getText());
        enterText(text, "anothervalid");
        assertTrue(((IStatus)bdg.getPartialValidationStatus().getValue()).isOK());
        assertEquals("anothervalid", text.getText());
        assertEquals("anothervalid", adventure.getName());
    }
    public void testScenario07() {
        // 
        // 
        // 
        Text text = new Text(getComposite(), SWT.BORDER);