[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.epf] Re: Problems with Rich Text Editor

Ok, I am using eclipse 3.4 so that must be reason. Thanks for the information.

Now I have another problem maybe you can help me in. 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 Del, back space and so on... but not when I press simple characters. I don't understand what is going on. Has anyone experienced anything similar??

Thanks in advance.

Mario

Jacques LESCOT escribió:
Mario Cervera a écrit :
Hi.

I've managed to use the rich text editor in my application. I've subclassed RichTextEditor so that I could have a ToolBar but I have two problems:

- An empty space appears before the first button of my toolbar

- The editor is not multiline (at least the enter key doesn't work). I've set the style as SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL and it doesn't seem to solve anything.
The bug with "Return" key has been solved in Eclipse 3.4.1 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=238957)

Jacques

Has anyone had the same problems? What can I do?

Thanks in advance

Mario