public class CreateRichTextControlWithSharedToolBarOperation extends CreateRichTextControlOperation
Constructor and Description |
---|
CreateRichTextControlWithSharedToolBarOperation(org.eclipse.swt.widgets.Composite parent,
int style,
IRichTextToolBar toolbar,
java.lang.Object factory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(ITextControlProvider provider)
Executes this operation on ITextControlProvider.
|
getControlFactory, getParent, getStyle
public CreateRichTextControlWithSharedToolBarOperation(org.eclipse.swt.widgets.Composite parent, int style, IRichTextToolBar toolbar, java.lang.Object factory)
parent
- The parent composite.style
- The style bits for the new control.toolbar
- The shared tool bar.factory
- An optional factory.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
execute
in class CreateRichTextControlOperation
provider
- The provider on which to execute the operation.