Bug 126839 [DataBinding] IObservable refactoring
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/SpinnerUpdatableValue.java
}
				}
			});
		} else if (!attribute.equals(SWTProperties.MIN)
				&& !attribute.equals(SWTProperties.MAX)) {
			throw new IllegalArgumentException(
					"Attribute name not valid: " + attribute); 
		}
	}
	public void setValue(final Object value) {
		AsyncRunnable runnable = new AsyncRunnable(){
			public void run(){
				int oldValue;
				int newValue;
				try {
					updating = true;
					newValue = ((Integer) value).intValue();
					if (attribute.equals(SWTProperties.SELECTION)) {
						oldValue = spinner.getSelection();
						spinner.setSelection(newValue);
					} else if (attribute.equals(SWTProperties.MIN)) {
						oldValue = spinner.getMinimum();
						spinner.setMinimum(newValue);
					} else if (attribute.equals(SWTProperties.MAX)) {
						oldValue = spinner.getMaximum();
						spinner.setMaximum(newValue);
					} else {
						Assert.isTrue(false, "invalid attribute name:" + attribute); 
						return;
					}