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/internal/databinding/internal/viewers/SelectionProviderSingleSelectionObservableValueTest.java
int count = 0;
        IObservable source;
        ValueDiff diff;
        /*
         * (non-Javadoc)
         * 
         * @see org.eclipse.jface.databinding.observable.value.IValueChangeListener#handleValueChange(org.eclipse.jface.databinding.observable.value.IObservableValue,
         *      org.eclipse.jface.databinding.observable.value.ValueDiff)
         */
        public void handleValueChange(IObservableValue source, ValueDiff diff) {
            count++;
            this.source = source;
            this.diff = diff;
        }
    }
    private class ContentProvider implements IStructuredContentProvider {
        public void dispose() {
            
        }
        public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
            
        }
        public Object[] getElements(Object inputElement) {
            return (String[]) inputElement;
        }
    }
}