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.jface.databinding/src/org/eclipse/jface/databinding/viewers/ObservableListContentProvider.java
}
		setInput((IObservableList) newInput);
	}
	/**
	 * @param list
	 */
	private void setInput(IObservableList list) {
		if (list == null) {
			list = new WritableList(SWTObservables.getRealm(Display.getDefault()));
		}
		if (observableList != null) {
			observableList.removeListChangeListener(listener);
		}
		
		knownElements.clear();
		observableList = list;
		
		knownElements.addAll(list);
		observableList.addListChangeListener(listener);
	}
	/**
	 * @return the set of elements known to this content provider. Label providers may track
	 * this set if they need to be notified about additions before the viewer sees the added
	 * element, and notified about removals after the element was removed from the viewer.
	 */
	public IObservableSet getKnownElements() {
		return knownElements;
	}
}