| [news.eclipse.technology.epf] Re: Databinding and rich text editor |
Hi Eric,
Mario
Mario Cervera wrote:Hi.
I am trying to use databinding with the rich text editor. I've managed to make it work by simply returning an instance of RichTextObservableValue the same way observeText returns TextObservableValue. RichTextObservableValue is a class I've implemented which inherites from AbstractVetoableValue. Everything is ok but I have problems with the modify listener, that is, the ModifyEvent is not fired when I write in the RichTextEditor, therefore my editor is not set as dirty. To my surprise, this event is fired when pressing keys like delete, back space... but not when I press simple characters. I don't understand what is going on. Has anyone experienced anything similar? Has anyone got to make databinding work with this editor?
We use a custom RichTextObservableValue and it works correctly on Eclipse 3.3. I have not yet started testing our stuff on 3.4, however.
The class is in this package: <https://www.skywayperspectives.org/fisheye/browse/CVS_OpenSource/skyway/common/plugins/org.skyway.ui/src/org/skyway/ui/richtext>
Hope this helps, Eric