Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Databinding WidgetProperties.editable()
Databinding WidgetProperties.editable() [message #1800693] Sat, 05 January 2019 18:49
Frank Benoit is currently offline Frank BenoitFriend
Messages: 155
Registered: July 2009
Senior Member

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),
				null, null);

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?


Previous Topic:What is the standard way of setting key bindings for SourceViewer
Next Topic:AutoCompleteField with comma-separated values?
Goto Forum:

Current Time: Fri Apr 16 08:00:01 GMT 2021

Powered by FUDForum. Page generated in 0.01870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top