File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
de.vogella.databinding.example/src/de/vogella/databinding/example Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 55import org .eclipse .core .databinding .DataBindingContext ;
66import org .eclipse .core .databinding .UpdateValueStrategy ;
77import org .eclipse .core .databinding .beans .BeanProperties ;
8- import org .eclipse .core .databinding .beans .BeansObservables ;
98import org .eclipse .core .databinding .observable .value .IObservableValue ;
109import org .eclipse .core .databinding .validation .IValidator ;
1110import org .eclipse .core .databinding .validation .ValidationStatus ;
@@ -191,7 +190,7 @@ public IStatus validate(Object value) {
191190 ctx .bindValue (widgetValue , modelValue );
192191
193192 widgetValue = WidgetProperties .selection ().observe (genderCombo );
194- modelValue = BeansObservables . observeValue ( person , "gender" );
193+ modelValue = BeanProperties . value ( "gender" ). observe ( person );
195194
196195 ctx .bindValue (widgetValue , modelValue );
197196
You can’t perform that action at this time.
0 commit comments