| [news.eclipse.technology.epf] Re: Displaying a RichTextEditor in a popup |
Hi !
I want to offer a rich text editor for some properties in a EMF-like editor. When the button "..." is pressed, a popup appears. I managed to display a rich text editor but when I add the richtexttoolbar (with the fillToolBar() method), it appears at the bottom :( Here is a part of my code :
RichTextEditor rte = new RichTextEditor(parent, SWT.NONE, jEditor.getEditorSite());
IRichText rt = rte.getRichTextControl();
RichTextToolBar rttb = new RichTextToolBar(parent, SWT.NONE, rt);
rte.fillToolBar(rttb);
In the API (v1.0), the RichTextEditor has only 2 parameters but in my plugin (v1.2), there are 3. Can it come from this ?
Moreover, the richtext object is very small and I want it to fill the popup dialog (horizontally). I thought this was due to the layout and the layout data so I tried many combinaisons but it didn't work :(
Hope this helps, Eric