org.eclipse.epf.richtext
Class RichTextFormToolkit

java.lang.Object
  extended byorg.eclipse.epf.richtext.RichTextFormToolkit

public class RichTextFormToolkit
extends java.lang.Object

A helper toolkit for creating a rich text control and editor that can be added to an Eclipse form.

Since:
1.0
Author:
Kelvin Low

Constructor Summary
RichTextFormToolkit()
           
 
Method Summary
static IRichText createRichText(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, java.lang.String text, int style)
          Creates a rich text control and adapts it to be used in a form.
static IRichTextEditor createRichTextEditor(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, java.lang.String text, int style)
          Creates a rich text editor and adapts it to be used in a form.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RichTextFormToolkit

public RichTextFormToolkit()
Method Detail

createRichText

public static IRichText createRichText(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                                       org.eclipse.swt.widgets.Composite parent,
                                       java.lang.String text,
                                       int style)
Creates a rich text control and adapts it to be used in a form.

Parameters:
toolkit - the form toolkit
parent - the parent control
text - the initial text for the viewer
style - the initial style for the viewer
Returns:
a new IRichText instance

createRichTextEditor

public static IRichTextEditor createRichTextEditor(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                                                   org.eclipse.swt.widgets.Composite parent,
                                                   java.lang.String text,
                                                   int style)
Creates a rich text editor and adapts it to be used in a form.

Parameters:
toolkit - the form toolkit
parent - the parent control
text - the initial text for the viewer
style - the initial style for the viewer
Returns:
a new IRichText instance