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
/*
				 * (non-Javadoc)
				 * 
				 * @see org.eclipse.jface.databinding.viewers.ViewerLabelProvider#updateLabel(org.eclipse.jface.viewers.ViewerLabel,
				 *      java.lang.Object)
				 */
				public void updateLabel(ViewerLabel label, Object element) {
					if (element instanceof RenamableItem) {
						RenamableItem item = (RenamableItem) element;
						label.setText(item.getName());
					}
				}
				protected void addListenerTo(Object next) {
					RenamableItem item = (RenamableItem) next;
					item.addListener(listener);
				}
				protected void removeListenerFrom(Object next) {
					RenamableItem item = (RenamableItem) next;
					item.removeListener(listener);
				}
			});
			list.setInput(setOfRenamables);
			selectedRenamable = ViewersObservables.observeSingleSelection(list);
			Composite buttonBar = new Composite(shell, SWT.NONE);
			{ 
				addButton = new Button(buttonBar, SWT.PUSH);
				addButton.setText("Add"); 
				addButton.addSelectionListener(buttonSelectionListener);
				removeButton = new Button(buttonBar, SWT.PUSH);
				removeButton.addSelectionListener(buttonSelectionListener);