Open erwinwolff opened 1 month ago
Is this caused by the code that is generated by WindowBuilder? How would I reproduce this problem?
Yes it is an error generated by WindowBuilder generated code.
steps to reproduce
Add a JFace Table and TableViewer.
Go to bindings and add a binding for Input of the TableViewer
Then fill in the list like this:
The old PojoObservables class will appear in the generated code
POM.xml deps:
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.jface</artifactId>
<version>3.33.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.core.databinding</artifactId>
<version>1.13.200</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.core.databinding.beans</artifactId>
<version>1.10.200</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.jface.databinding</artifactId>
<version>1.15.200</version>
</dependency>
Thanks. I've tried it out and the same issue shows up with the nightly build.
Is it a setting that I can set to make WindowBuilder not use this class?
The short version: No
The migration to the new Observable API is still not completed (as shown in https://github.com/eclipse-windowbuilder/windowbuilder/issues/492). I've created https://github.com/eclipse-windowbuilder/windowbuilder/pull/784, which should handle this specific case. But in general, the Eclipse databinding support is barely holding together.
Thank you very much
Fixed via #784 . @erwinwolff Can you try out the upcoming nightly build and check if there is any edge-case I have missed?
Yes
I am getting the error
"line: 173 The method observeMaps(IObservableSet, Class
I am also not convinced that I am using the nightly version of WindowBuilder. How do I explicitly enable the nightly?
I am getting the error "line: 173 The method observeMaps(IObservableSet, Class, String[]) is undefined for the type PojoProperties"
That's what I was afraid of... The databinding support is all over the place and I likely missed one or to places :/
I am also not convinced that I am using the nightly version of WindowBuilder. How do I explicitly enable the nightly?
You can always check what version is installed by looking at the timestamp of the installed features/plugins. You can check them via the main menu under Help -> About Eclipse -> Installation Details
You can install the nightly build either via the "Help -> Install New Software..." wizard, using the https://download.eclipse.org/windowbuilder/updates/nightly/latest update site, or via the Eclipse market place if you look for "WindowBuilder Nightly Nightly".
Hi
I am getting an error with windowbuilder. This line sticks out.
line: 172 org.eclipse.core.databinding.beans.PojoObservables cannot be resolved to a type
Is it a setting that I can set to make WindowBuilder not use this class?
Version: updated WindowBuilder Current of Eclipse
Full stack trace:
line: 167 IObservableValue is a raw type. References to generic type IObservableValue should be parameterized
line: 168 IObservableValue is a raw type. References to generic type IObservableValue should be parameterized
line: 169 Type safety: Unchecked invocation bindValue(IObservableValue, IObservableValue, null, null) of the generic method bindValue(IObservableValue, IObservableValue, UpdateValueStrategy<? super T,? extends M>, UpdateValueStrategy<? super M,? extends T>) of type DataBindingContext
line: 169 Type safety: The expression of type IObservableValue needs unchecked conversion to conform to IObservableValue