Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/updatables/CalculatedValue.java
* <p>
	 * Often this is used to make this CalculatedValue depend on one or more
	 * JavaBean property change events, but anything that can be converted to
	 * an IUpdatable will work.
	 *  
	 * @param dbc The data binding context to use for converting objects into IUpdatableValues
	 * @param descriptionObjects An array of description objects that are convertable to IUpdatableValues.
	 */
	public void setDependencies(IDataBindingContext dbc, Object[] descriptionObjects) {
		IUpdatable[] values = convertToUpdatables(dbc, descriptionObjects);
		setDependencies(values);
		selfMadeUpdatables = true;
	}
	
	private IUpdatable[] convertToUpdatables(IDataBindingContext dbc, Object[] objects) {
		IUpdatable[] result = new IUpdatable[objects.length];
		for (int i = 0; i < objects.length; i++) {
			result[i] = dbc.createUpdatable(objects[i]);
		}
		return result;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.databinding.Updatable#dispose()
	 */
	public void dispose() {
		unhookDependantUpdatableValues();
		super.dispose();
	}
}