Hello,
I'm quite new to JFace databinding.
I tried to add some databinding on a custom ComboClass (extending ComboViewer, and reducing the contained type to a single type).
It works great for filling the combo with the available values, but not for the selection.
Here is my code :
ComboViewer source = myCustomCombo...
Model bindings = POJO object...
IObservableValue target = ViewersObservables.observeSingleSelection(source);
IObservableValue model = BeansObservables.observeValue(bindings, "selection");
bindingContext.bindValue(target, model,null,null);
The field bindings.selection is the same type of the object contained in the combo (so I think I don't need converter).
I also tried the generated method from Windows Builder :
IObservableValue observeSingleSelectionAxisSelectionCombo = ViewerProperties.singleSelection().observe(source );
IObservableValue selectedAxisBindingsObserveValue = BeanProperties.value("selection").observe(bindings);
bindingContext.bindValue(observeSingleSelectionAxisSelectionCombo, selectedAxisBindingsObserveValue, null, null);
Nothing happens on selection. No error, no stacktrace, nothing. I launched in debug, the binding is actually created, but no getter/setter are being called on selection.
Any idea ?? Thanks