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
public void testScenario13() {
        Text text = new Text(getComposite(), SWT.BORDER);
        
        getDbc().bdValue(SWTObservables.observeText(text, SWT.FocusOut), BeansObservables.observeValue(adventure, "name"), null);
        
        // happe
        
        Strg adventureName = adventure.getName();
        assertEquals(adventureName, text.getText());
        enterText(text, "foobar");
        
        
        assertEquals("foobar", adventure.getName());
        adventure.setName("barfoo");
        
        
        assertEquals("barfoo", text.getText());
    }
    public void testScenario14() {
        Text t1 = new Text(getComposite(), SWT.BORDER);
        Text t2 = new Text(getComposite(), SWT.BORDER);
  
        getDbc().bdValue(SWTObservables.observeText(t1, SWT.Modify), BeansObservables.observeValue(adventure, "name"), null);
        getDbc().bdValue(SWTObservables.observeText(t2, SWT.Modify), BeansObservables.observeValue(adventure, "name"), null);
        
        fal t[] counter = { 0 };
        
        IObservableValue uv = BeansObservables.observeValue(adventure, "name");
        
        uv.addChangeListener(new IChangeListener() {