XWT ListViewer multi selection [message #685084] |
Thu, 16 June 2011 19:28 |
Thomas Haertel Messages: 2 Registered: May 2011 |
Junior Member |
|
|
Hi,
I try to figure out how to add databinding to a ListViewer which supports multi selection. This is XWT description snippet:
<ListViewer multiSelection="{Binding path=selectedItems}" input="{Binding path=listEntries}" bindingPath="description" x:Style="SWT.MULTI|SWT.FULL_SELECTION|SWT.BORDER">
</ListViewer>
The list entries are shown without a problem, but when the databinding is initiated, I get an IllegalStateException:
at org.eclipse.e4.xwt.internal.core.BindingGate.bind(BindingGate.java:116)
at org.eclipse.e4.xwt.databinding.DataBinding.getValue(DataBinding.java:109)
at org.eclipse.e4.xwt.internal.core.Binding.getValue(Binding.java:241)
at org.eclipse.e4.xwt.converters.BindingToObject.convert(BindingToObject.java:26)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initSegmentAttribute(ResourceLoader.java:1737)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initAttribute(ResourceLoader.java:1525)
at org.eclipse.e4.xwt.javabean.ResourceLoader.iniDelayedAttribute(ResourceLoader.java:734)
at org.eclipse.e4.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:707)
at org.eclipse.e4.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:702)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initSegmentAttribute(ResourceLoader.java:1693)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initAttribute(ResourceLoader.java:1525)
at org.eclipse.e4.xwt.javabean.ResourceLoader.init(ResourceLoader.java:1128)
at org.eclipse.e4.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:666)
at org.eclipse.e4.xwt.javabean.ResourceLoader.createUIElement(ResourceLoader.java:363)
at org.eclipse.e4.xwt.internal.core.Core.createCLRElement(Core.java:625)
at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:754)
at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:655)
at org.eclipse.e4.xwt.XWTLoader.loadWithOptions(XWTLoader.java:1072)
at org.eclipse.e4.xwt.XWT.loadWithOptions(XWT.java:623)
...
It seems to be that XWT doesn't recognice that my binding path for the selection is from type List<MyClass>. It tries to take the data context object itself for binding and not the configured property "selectedItems".
Any Ideas what could be wrong?
Thanks.
Best regards,
Thomas Haertel
|
|
|
Powered by
FUDForum. Page generated in 0.05052 seconds