F
- the factory class that contributions must extend.public abstract class ExtensionOperation<F extends OperationFactory> extends Operation
A transformation can declare a few extension points that allow customizing the original behavior of the transformation, without having to modify the source code of the transformation. A plug-in can contribute an extension, referring the declared extension point, with an associated operation to execute.
Note that extensions are executed only when running in an Eclipse platform. Extensions are ignored if running in a standalone Java application.
See the Help Contents fore more information on how to extend operations: MDWorkbench Documentation > Tasks > Developing Operations > Extending Operations > Declaring an Operation Extension Point
Constructor and Description |
---|
ExtensionOperation(String extensionPoint,
OperationContext context)
Creates a new instance of
ExtensionOperation for the specified extension point. |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
configure(F factory)
Configures the factory instance created by an extension.
|
protected void |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
Executes extensions of the extension point specified in the constructor.
|
getName, getStatus, isCanceledOrFailed, run, run
public ExtensionOperation(String extensionPoint, OperationContext context)
ExtensionOperation
for the specified extension point.extensionPoint
- the id of the extension point this operation must execute contributions.context
- the operation context.protected final void run(org.eclipse.core.runtime.IProgressMonitor monitor)
run
in class Operation
monitor
- the progress monitor used to report progress and to check for cancellation.OperationRunner.run(Operation, IProgressMonitor)
,
Operation.run(Operation, IProgressMonitor)
,
Operation.isCanceledOrFailed(IProgressMonitor)
protected abstract void configure(F factory)
factory
- the factory instance created by an extension.