public class TransformController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOG_TRACE_PROP_ID |
| Constructor and Description |
|---|
TransformController() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.runtime.IStatus |
execute(ITransformConfig config,
ITransformContext aContext,
boolean isReverse,
boolean isSilent,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute a TransformConfig.
|
org.eclipse.core.runtime.IStatus |
execute(ITransformConfig config,
ITransformContext aContext,
boolean isReverse,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute a TransformConfig.
|
static TransformController |
getInstance()
Obtain the singleton instance of the trnasformation registry.
|
boolean |
isReverseEnabled(ITransformContext context)
Determines if the reverse transformation is enabled.
|
org.eclipse.core.runtime.IStatus |
validateContext(ITransformConfig config,
ITransformContext context,
boolean isReverse)
Validate the context of a TransformConfig.
|
org.eclipse.core.runtime.IStatus |
validateContext(ITransformConfig config,
ITransformContext context,
boolean isReverse,
boolean updateMarkers)
Validate the context of a TransformConfig.
|
public static final java.lang.String LOG_TRACE_PROP_ID
public static TransformController getInstance()
public org.eclipse.core.runtime.IStatus execute(ITransformConfig config, ITransformContext aContext, boolean isReverse, boolean isSilent, org.eclipse.core.runtime.IProgressMonitor monitor)
config - The TransformConfig to execute.aContext - The transformation context to execute on. It can be null.isReverse - Indicate if the TransformConfig should be executed in the "reverse" direction.isSilent - Indicate if the TransformConfig should be executed silently.monitor - An optional IProgressMonitor to be used during execution.public org.eclipse.core.runtime.IStatus execute(ITransformConfig config, ITransformContext aContext, boolean isReverse, org.eclipse.core.runtime.IProgressMonitor monitor)
config - The TransformConfig to execute.aContext - The transformation context to execute on. It can be null.isReverse - Indicate if the TransformConfig should be executed in the "reverse" direction.monitor - An optional IProgressMonitor to be used during execution.public org.eclipse.core.runtime.IStatus validateContext(ITransformConfig config, ITransformContext context, boolean isReverse)
config - The TransformConfig to validate.context - The optional transform context to execute on.isReverse - Indicate if the TransformConfig should be executed in the "reverse" direction.public org.eclipse.core.runtime.IStatus validateContext(ITransformConfig config, ITransformContext context, boolean isReverse, boolean updateMarkers)
config - The TransformConfig to validate.context - The optional transform context to execute on.isReverse - Indicate if the TransformConfig should be executed in the "reverse" direction.updateMarkers - Indicates if the markers of the transformation
configuration's file should be updated based on the validation results.public boolean isReverseEnabled(ITransformContext context)
context - The context that contains the property values used to
determine if the reverse transformation is enabled.