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
examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/LabelProviderTest.java
Button pressed = (Button) e.widget;
			if (pressed == addButton) {
				setOfRenamables.add(new RenamableItem());
			} else if (pressed == removeButton) {
				setOfRenamables.remove(getCurrentSelection());
			} else if (pressed == renameButton) {
				rename(getCurrentSelection());
			}
			super.widgetSelected(e);
		}
	};
	private IObservableValue selectedRenamable;
	/**
	 * 
	 */
	public LabelProviderTest() {
		
		shell = new Shell(Display.getCurrent());
		{ 
			setOfRenamables = new WritableSet();
			list = new ListViewer(shell);
			ObservableSetContentProvider contentProvider = new ObservableSetContentProvider();
			list.setContentProvider(contentProvider);
			list.setLabelProvider(new ListeningLabelProvider(contentProvider
					.getKnownElements()) {
				RenamableItem.Listener listener = new RenamableItem.Listener() {
					public void handleChanged(RenamableItem item) {
						fireChangeEvent(Collections.singleton(item));
					}
				};