Community
Participate
Working Groups
Within org.eclipse.core.databinding.Binding.init(DataBindingContext) there is a call to org.eclipse.core.databinding.DataBindingContext.addBinding(Binding), which adds the new Binding to the observable lists validationStatusProviders and bindings. Both observable lists use the validation realm. Idea: Surround the call to context.addBinding(this) in the Binding class with: Binding.this.context.getValidationRealm().exec(new Runnable() { public void run() { context.addBinding(this); });
New Gerrit change created: https://git.eclipse.org/r/70868
(In reply to Conrad Groth from comment #0) > Within org.eclipse.core.databinding.Binding.init(DataBindingContext) there > is a call to > org.eclipse.core.databinding.DataBindingContext.addBinding(Binding), which > adds the new Binding to the observable lists validationStatusProviders and > bindings. Both observable lists use the validation realm. Which problem are you trying to solve?
(In reply to Lars Vogel from comment #2) > (In reply to Conrad Groth from comment #0) > > Within org.eclipse.core.databinding.Binding.init(DataBindingContext) there > > is a call to > > org.eclipse.core.databinding.DataBindingContext.addBinding(Binding), which > > adds the new Binding to the observable lists validationStatusProviders and > > bindings. Both observable lists use the validation realm. > > Which problem are you trying to solve? If the validation realm is not the current realm during the creation of the binding, you will get an exception like "...not the current realm...". Either there are not many people out there working with different realms or all of these people already implemented their own workaround, like I did that for the project I'm currently working on. The proposed patch contains exactly that code, I'm also using for my multi realm aware Binding classes in my project.
Mass move to M4.
Conrad, could you please provide an example project that we can use to test your change?
Gerrit change https://git.eclipse.org/r/70868 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d177fac8462fce243ad781964da32620691508e6
Conrad, please add to N&N M7.