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/DatabindingContextTest.java
BindingStub binding = new BindingStub(null);
		DataBindingContext dbc = new DataBindingContext();
		dbc.addBinding(binding);
		assertTrue("context should contain the binding", dbc.getBindings()
				.contains(binding));
		assertTrue("removing the factory should return true", dbc
				.removeBinding(binding));
		assertFalse("binding should have been removed", dbc.getBindings()
				.contains(binding));
		assertFalse("when not found false should be returned", dbc
				.removeBinding(binding));
	}
	/**
	 * {@link IValueChangeListener} implementation that counts the times
	 * handleValueChange(...) is invoked.
	 * 
	 * @since 3.2
	 */
	private static class ValueChangeCounter implements IValueChangeListener {
		int count;
		public void handleValueChange(IObservableValue source, ValueDiff diff) {
			count++;
		}
	}
	/**
	 * {@link IChangeListener} implementation that counts the times
	 * handleChange(...) is invoked.
	 * 
	 */
	private static class ChangeCounter implements IChangeListener {