Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » RichText in SWT?
RichText in SWT? [message #449136] Tue, 18 January 2005 18:09 Go to next message
Eclipse UserFriend
Originally posted by: freddie_nurke.hotmail.com

Hi folks,

I'm trying to dig up a rich text editor I can use in Eclipse. Ideally,
such a control would wrap or implement similar functionality to the
Windows RichText control: multiple fonts and formatting in a single line
of text, word wrapping, right-to-left text, alignment, etc.

SWT's StyledText provides fairly basic functionality and misses many of
these features. The JFace TextViewer seems to be only a wrapper for a
StyledText, so as best as I can tell it has the same restrictions.
Swing's JTextComponent seems to do what I need but would require the
swing/swt bridge, which I'd rather not rely on.

On the Eclipse website I found a bug report on this topic (#54426,
"Implement RichText editor for SWT"). One of the posters there has
worked on modifications to the StyledText, but they appear to be buggy
and incomplete. I'm in the process of evaluating that solution.

Does anyone know of an appropriate control for rich text editing in SWT,
or a reasonable alternative?

Thanks,

Fred
Re: RichText in SWT? [message #449191 is a reply to message #449136] Wed, 19 January 2005 02:09 Go to previous message
Gerald Rosenberg is currently offline Gerald RosenbergFriend
Messages: 106
Registered: July 2009
Senior Member
In article <csjjdd$dfb$1@www.eclipse.org>, freddie_nurke@hotmail.com
says...
> Hi folks,
>
> I'm trying to dig up a rich text editor I can use in Eclipse. Ideally,
> such a control would wrap or implement similar functionality to the
> Windows RichText control: multiple fonts and formatting in a single line
> of text, word wrapping, right-to-left text, alignment, etc.
>
> SWT's StyledText provides fairly basic functionality and misses many of
> these features. The JFace TextViewer seems to be only a wrapper for a
> StyledText, so as best as I can tell it has the same restrictions.
> Swing's JTextComponent seems to do what I need but would require the
> swing/swt bridge, which I'd rather not rely on.
>
> On the Eclipse website I found a bug report on this topic (#54426,
> "Implement RichText editor for SWT"). One of the posters there has
> worked on modifications to the StyledText, but they appear to be buggy
> and incomplete. I'm in the process of evaluating that solution.
>
> Does anyone know of an appropriate control for rich text editing in SWT,
> or a reasonable alternative?
>
> Thanks,
>
> Fred
>

Not sure why the concern with the SWT_AWT bridge. Very stable and works
more than reasonably well to embed a JTextPane (preferable to a
TextComponent). And, the complications of mixing SWT and Swing are
actually quite minor, in practice. In the absence of a mature SWT
widget, not a bad alternative.
Previous Topic:JFace Table: getColumnImage always returns all black
Next Topic:How to notify View of Editor changes
Goto Forum:
  


Current Time: Tue Apr 23 06:03:55 GMT 2024

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

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

Back to the top