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: 144
Registered: July 2009
Senior Member
Hello

I have a strange behavior.
In a dialog I use this type of binding:
		bindingContext.bindValue(
				WidgetProperties.editable().observe(txtPath),
				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?

thanks
Frank


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


Current Time: Sat Dec 14 17:54:37 GMT 2019

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

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

Back to the top