|Databinding WidgetProperties.editable() [message #1800693]
||Sat, 05 January 2019 18:49
| Frank Benoit
Registered: July 2009
I have a strange behavior.
In a dialog I use this type of binding:
BeanProperties.value(Data.class, Data.PROP_TYPE_A, Boolean.TYPE).observe(model),
I have the property available for TYPE_A and TYPE_B, to control one text field to be editable or the others.
The property that modfies TYPE_A/B is also controlled via another binding, e.g. over a checkbox.
The problem: For TYPE_A it works, but for TYPE_B it is always editable.
There are 3 ways, i see to make it work, so the other text fields are switching editable:
1. When i change all BeanProperties to observer either only TYPE_A or TYPE_B
2. When i switch the WidgetProperties to the enabled(), instead editable()
3. When i let the dialog run in a standalone JFace application. Same bundles used as in the RCP application. In the RCP application the exact same dialog does not behave good.
Does someone have an idea how i can make it work with editable() in the RCP?
Powered by FUDForum
. Page generated in 0.01870 seconds