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
bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/set/ObservableSet.java
if (setChangeListeners instanceof Collection) {
			Collection listenerList = (Collection) setChangeListeners;
			listenerList.remove(listener);
			if (listenerList.isEmpty()) {
				setChangeListeners = null;
				if (!hasListeners()) {
					lastListenerRemoved();
				}
			}
		}
	}
	protected boolean hasListeners() {
		return super.hasListeners() || setChangeListeners!=null;
	}
	protected void fireSetChange(SetDiff diff) {
		
		super.fireChange();
		if (setChangeListeners == null) {
			return;
		}
		
		if (setChangeListeners instanceof ISetChangeListener) {
			((ISetChangeListener) setChangeListeners).handleSetChange(this, diff);
			return;
		}
		
		Collection changeListenerCollection = (Collection) setChangeListeners;
		
		ISetChangeListener[] listeners = (ISetChangeListener[]) (changeListenerCollection)
		.toArray(new ISetChangeListener[changeListenerCollection.size()]);