public class EmfMergeFacade
extends java.lang.Object
| Constructor and Description |
|---|
EmfMergeFacade() |
| Modifier and Type | Method and Description |
|---|---|
static DeltaTreeViewerInput |
createDeltaTreeViewerInput(EmfMergeManager mergeManager)
Creates the light weight viewer input.
|
static DeltaTreeViewerInput |
createDeltaTreeViewerInput(java.lang.String baseModelFilePath,
java.lang.String contModelFilePath,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.StringBuilder outputErrorMessages)
Creates the light weight viewer input.
|
static IInputOutputDescriptor |
createDescriptor(org.eclipse.emf.ecore.EObject eObject)
Creates io descriptor for compare/merge operation.
|
static IInputOutputDescriptor |
createDescriptor(org.eclipse.emf.ecore.resource.Resource emfResource)
Creates io descriptor for compare/merge operation.
|
static IInputOutputDescriptor |
createDescriptor(java.lang.String filePath)
Creates io descriptor for compare/merge operation.
|
static MergeSessionInfo |
createSessionInfo(java.lang.String[] inputFilePaths,
java.lang.String outputFilePath,
MergeModeType mode,
IMergeStatusCallback callback)
Creates io descriptor for compare/merge operation.
|
static void |
openModelCompareEditor(java.lang.String baseFilePath,
java.lang.String contFilePath,
ActiveDeltaSetter activeDeltaSetter)
Opens the compare editor the the given two model files.
|
static EmfMergeManager |
startSilentMerge(MergeSessionInfo sessionInfo,
org.eclipse.core.runtime.IProgressMonitor monitor)
Initiates the silent compare or merge session (Two or Three-way).
|
public static IInputOutputDescriptor createDescriptor(java.lang.String filePath)
filePath - Path of the model file to be compared.public static IInputOutputDescriptor createDescriptor(org.eclipse.emf.ecore.resource.Resource emfResource)
emfResource - The emf resource to be compared.public static IInputOutputDescriptor createDescriptor(org.eclipse.emf.ecore.EObject eObject)
eObject - The emf object to be compared.public static MergeSessionInfo createSessionInfo(java.lang.String[] inputFilePaths,
java.lang.String outputFilePath,
MergeModeType mode,
IMergeStatusCallback callback)
inputFilePaths - Paths of the model files to be compared.outputFilePath - Output file location for the merged result.mode - Type of matcher. if the elements in the model have unique
xmi:id, use MergeModeType.MERGE_BY_ID. Otherwise, use
MergeModeType.FUSE_BY_NAME if the name should be used to
identify the elements in the model.public static DeltaTreeViewerInput createDeltaTreeViewerInput(java.lang.String baseModelFilePath, java.lang.String contModelFilePath, org.eclipse.core.runtime.IProgressMonitor monitor, java.lang.StringBuilder outputErrorMessages)
baseModelFilePath - Path of the base model file.contModelFilePath - Path of the contributor model file.monitor - The progress monitor. (Can be null)public static EmfMergeManager startSilentMerge(MergeSessionInfo sessionInfo, org.eclipse.core.runtime.IProgressMonitor monitor)
sessionInfo - The merge session infomonitor - The progress monitor. (Can be null)public static DeltaTreeViewerInput createDeltaTreeViewerInput(EmfMergeManager mergeManager)
mergeManager - The merge manager that was used to run the compare merge
session.public static void openModelCompareEditor(java.lang.String baseFilePath,
java.lang.String contFilePath,
ActiveDeltaSetter activeDeltaSetter)
baseFilePath - base model file pathcontFilePath - contributor model file pathactiveDeltaSetter - the active delta setter.