Bug 127861 [DataBinding] Mark API provisional
examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/StructuredContentProviderTest.java
protected Object calculate() {
				double sum = 0.0;
				Collection value = outputSet.toCollection();
				for (Iterator iter = value.iterator(); iter.hasNext();) {
					Double next = (Double) iter.next();
					
					sum += next.doubleValue();
				}
				return new Double(sum);
			}
		};
	}
	/**
	 * Creates a radio button in the given parent composite. When selected, the button will change
	 * the given SettableValue to the given value.
	 *  
	 * @param parent parent composite
	 * @param model SettableValue that will hold the value of the currently-selected radio button
	 * @param string text to appear in the radio button
	 * @param value value of this radio button (SettableValue will hold this value when the radio
	 * button is selected)
	 */
	private void createRadioButton(Composite parent, final SettableValue model, String string, final Object value) {
		final Button button = new Button(parent, SWT.RADIO);
		button.setText(string);
		button.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				model.setValue(value);
				super.widgetSelected(e);
			}