return new CComboObservableValue((CCombo) control,
SWTProperties.SELECTION);
} else if (control instanceof List) {
return new ListObservableValue((List) control);
} else if (control instanceof Scale) {
return new ScaleObservableValue((Scale) control,
SWTProperties.SELECTION);
}
throw new IllegalArgumentException(
"Widget [" + control.getClass().getName() + "] is not supported."); //$NON-NLS-1$//$NON-NLS-2$