[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.epf] Re: Databinding and rich text editor

Hi Eric,

that's the class I'm using but the method modifyText is not invoked as much as I'd like to. It's strange but it's invoked when I either use the toolbar or press Del, back space... but not when I write simple characters :S. The problem of this is that I have problems to set my model as dirty. I could use the focus out event but the listener I use doesn't get called either.

Mario

Eric Rizzo escribió:
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