Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPF » Displaying a RichTextEditor in a popup
Displaying a RichTextEditor in a popup [message #589871] Thu, 10 July 2008 12:23
Aline is currently offline Aline
Messages: 32
Registered: July 2009
Member
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 :(

Can anyone help me ?

Thanks in advance !!
Previous Topic:Search Feature for EPF 1.2
Next Topic:How to link Method Content to CMMi practices ?
Goto Forum:
  


Current Time: Mon Oct 20 04:45:51 GMT 2014

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

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