org.eclipse.xpand2.incremental.compare
Class EmfCompare
java.lang.Object
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
org.eclipse.xpand2.incremental.compare.EmfCompare
- All Implemented Interfaces:
- org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
public class EmfCompare
- extends org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
This component performs an EMF Compare comparison for the two models given in
the oldModelSlot
and newModelSlot
parameters. The
raw diff model is stored in the slot specified by diffModelSlot
.
A comparison snapshot is optionally stored in snapshotModelSlot
.
This is useful for diagnostics, since you can write this model with a
Writer
component and open it with the EMF compare UI.
If either the oldModel or newModel slots are empty (i.e. contain no model),
the EmfCompare component raises a warning, not an error so as not to
halt workflow execution.
- Author:
- Achim Demelt
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent |
checkRequiredConfigProperty, getBridge, getComponentName, getContainer, getId, getLocation, getLogMessage, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmfCompare
public EmfCompare()
setOldModelSlot
public void setOldModelSlot(java.lang.String oldModelSlot)
setNewModelSlot
public void setNewModelSlot(java.lang.String newModelSlot)
setDiffModelSlot
public void setDiffModelSlot(java.lang.String diffModelSlot)
setSnapshotModelSlot
public void setSnapshotModelSlot(java.lang.String snapshotModelSlot)
checkConfiguration
public void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
invokeInternal
protected void invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
org.eclipse.emf.mwe.core.issues.Issues issues)
- Specified by:
invokeInternal
in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent