View | Details | Raw Unified | Return to bug 314842 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/riena/internal/ui/ridgets/swt/NumericTextRidget.java (-2 / +7 lines)
Lines 19-24 Link Here
19
19
20
import org.eclipse.core.databinding.BindingException;
20
import org.eclipse.core.databinding.BindingException;
21
import org.eclipse.core.databinding.conversion.IConverter;
21
import org.eclipse.core.databinding.conversion.IConverter;
22
import org.eclipse.core.databinding.observable.value.IObservableValue;
22
import org.eclipse.core.runtime.Assert;
23
import org.eclipse.core.runtime.Assert;
23
import org.eclipse.swt.SWT;
24
import org.eclipse.swt.SWT;
24
import org.eclipse.swt.events.FocusAdapter;
25
import org.eclipse.swt.events.FocusAdapter;
Lines 487-494 Link Here
487
	}
488
	}
488
489
489
	private void checkValue() {
490
	private void checkValue() {
490
		Object value = getValueBindingSupport().getModelObservable().getValue();
491
		IObservableValue modelObservable = getValueBindingSupport().getModelObservable();
491
		Class<?> type = (Class<?>) getValueBindingSupport().getModelObservable().getValueType();
492
		if (modelObservable == null) {
493
			return;
494
		}
495
		Object value = modelObservable.getValue();
496
		Class<?> type = (Class<?>) modelObservable.getValueType();
492
		IConverter converter = getConverter(type, Integer.MAX_VALUE);
497
		IConverter converter = getConverter(type, Integer.MAX_VALUE);
493
		if (converter != null) {
498
		if (converter != null) {
494
			checkNumber((String) converter.convert(value));
499
			checkNumber((String) converter.convert(value));

Return to bug 314842