public class CreatePlainTextControlOperation extends java.lang.Object implements IPlainTextControlOperation
Constructor and Description |
---|
CreatePlainTextControlOperation(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()
Gets the widget factory to create plain text control
|
public CreatePlainTextControlOperation(org.eclipse.swt.widgets.Composite parent, int style, boolean hasToolbar, java.lang.Object factory)
parent
- parent widget to host plain text controlstyle
- style of plain text controlhasToolbar
- create or not create plain text control toolbarfactory
- the widget factory to create plain text control. this value
can be nullpublic 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.public java.lang.Object getControlFactory()