public class CreateRichTextControlOperation extends java.lang.Object implements IRichTextControlOperation
Constructor and Description |
---|
CreateRichTextControlOperation(org.eclipse.swt.widgets.Composite parent,
int style,
boolean hasToolbar,
java.lang.Object factory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(ITextControlProvider provider)
Executes this operation on ITextControlProvider.
|
java.lang.Object |
getControlFactory()
Returns the widget factory to create rich text control.
|
protected org.eclipse.swt.widgets.Composite |
getParent()
Returns the parent composite.
|
protected int |
getStyle()
Returns the style bits of rich text control.
|
public CreateRichTextControlOperation(org.eclipse.swt.widgets.Composite parent, int style, boolean hasToolbar, java.lang.Object factory)
parent
- the parent widget that hosts rich text controlstyle
- style of rich text controlhasToolbar
- create or not create rich text control toolbarfactory
- widget factory used to create rich text control. This value
can be null.public java.lang.Object execute(ITextControlProvider provider)
ITextControlOperation
Service implementers generally implement this method by first casting the ITextControlProvider to their service specific ITextControlProvider-derived class and then by delegating it the execution. Delegation is accomplished through the ITextControlProvider derived class API.
execute
in interface ITextControlOperation
provider
- The provider on which to execute the operation.protected org.eclipse.swt.widgets.Composite getParent()
protected int getStyle()
public java.lang.Object getControlFactory()