|
Re: how on earth do i bind comboVIewer to CellEditor? [message #667760 is a reply to message #667757] |
Mon, 02 May 2011 06:53 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
WidgetProperties.selection() looks wrong because when you want to
observe a viewer you'll have to use ViewerProperties but to me it looks
like as if CellEditorProperties does not support this.
Please file a feature request bugzilla.
Tom
Am 02.05.11 08:09, schrieb elhanan:
>
> i'm trying all sorts of ways to have a ComboViewer , send a particular
> property from a selected object to another property, the object
> recieving the property is a bean while the selected object is a pojo,
> but i cannot find a way to get them to work..
>
> final ComboBoxViewerCellEditor cellEditor = new
> ComboBoxViewerCellEditor(tv.getTable(), SWT.READ_ONLY);
> cellEditorProperty =
> CellEditorProperties.control().value(WidgetProperties.select ion());
> valueProperty = BeanProperties.value(propName);
> editingSupport = ObservableValueEditingSupport.create(tv,
> bindingContext, cellEditor, cellEditorProperty, valueProperty);
> tvc.setEditingSupport(editingSupport);
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02295 seconds