Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [Databinding] Custom control
[Databinding] Custom control [message #447772] Fri, 14 April 2006 19:45 Go to next message
Eclipse UserFriend
I'm trying to bind value in com.gface.custom.SearchBox SWT component with String value in model object. I did this same way like I did for Text component. But I got an exception when this code was executed: org.eclipse.jface.internal.databinding.provisional.BindingEx ception: could not find updatable for SearchBox {}

What is a proper way to bind this component with a value in a model? Same exception I got with DatePickerCombo SWT component.
Re: [Databinding] Custom control [message #447785 is a reply to message #447772] Sat, 15 April 2006 19:12 Go to previous messageGo to next message
Eclipse UserFriend
Miroslav,
You'll need to create an implementation of IObservable for your widget
and make it available to the binding process. For Text the IObservable
implementation is TextObservableValue. If you open
SWTObservableFactory and search for "TextObservableValue" you'll find
how and where the binding is created. Each widget needs its own
implementation of IObservable so that notifications can be fired at the
opportune time for the Widget to integrate into the framework.

Hope that helps.
-brad

On 2006-04-14 13:45:37 -0600, Miroslav Lazarevic
<lazarevic.miroslav@gmail.com> said:

> I'm trying to bind value in com.gface.custom.SearchBox SWT component
> with String value in model object. I did this same way like I did for
> Text component. But I got an exception when this code was executed:
> org.eclipse.jface.internal.databinding.provisional.BindingEx ception:
> could not find updatable for SearchBox {}
>
> What is a proper way to bind this component with a value in a model?
> Same exception I got with DatePickerCombo SWT component.
Re: [Databinding] Custom control [message #447825 is a reply to message #447785] Mon, 17 April 2006 15:01 Go to previous message
Eclipse UserFriend
Thank you Brad, that was help me.
Previous Topic:Hover action
Next Topic:rcp noob trying to refresh editor
Goto Forum:
  


Current Time: Tue Jul 08 16:38:37 EDT 2025

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

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

Back to the top