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/observable/UnmodifiableObservableListTest.java
ObservableList mutable;
	
	protected void setUp() throws Exception {
		List list = new ArrayList();
		list.add("1");
		list.add("2");
		
		mutable = new MutableObservableList(list, String.class);
		unmodifiable = (ObservableList) Observables.unmodifiableObservableList(mutable);
	}
	
	public void testFiresChangeEvents() throws Exception {
		ChangeCounter mutableListener = new ChangeCounter();
		ChangeCounter unmodifiableListener = new ChangeCounter();
		
		mutable.addChangeListener(mutableListener);
		unmodifiable.addChangeListener(unmodifiableListener);
		
		assertEquals(0, mutableListener.count);
		assertEquals(0, unmodifiableListener.count);
		mutable.add("3");
		assertEquals(1, mutableListener.count);
		assertEquals(1, unmodifiableListener.count);
	}
	
	public void testFiresListChangeEvents() throws Exception {
		ListChangeCounter mutableListener = new ListChangeCounter();
		ListChangeCounter unmodifiableListener = new ListChangeCounter();
		
		mutable.addListChangeListener(mutableListener);