org.eclipse.epf.richtext
Class RichTextFormToolkit
java.lang.Object
org.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
|
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 |
RichTextFormToolkit
public RichTextFormToolkit()
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 toolkitparent - the parent controltext - the initial text for the viewerstyle - 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 toolkitparent - the parent controltext - the initial text for the viewerstyle - the initial style for the viewer
- Returns:
- a new
IRichText instance