Class MergeAllNonConflictingCommand
- java.lang.Object
-
- org.eclipse.emf.common.command.AbstractCommand
-
- org.eclipse.emf.edit.command.ChangeCommand
-
- org.eclipse.emf.compare.command.impl.AbstractCopyCommand
-
- org.eclipse.emf.compare.command.impl.MergeAllNonConflictingCommand
-
- All Implemented Interfaces:
Command
,ICompareCopyCommand
@Beta public class MergeAllNonConflictingCommand extends AbstractCopyCommand
A merge command that merges all non-conflicting differences of the given comparison in either direction.- Since:
- 4.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying
-
-
Field Summary
-
Fields inherited from class org.eclipse.emf.compare.command.impl.AbstractCopyCommand
differences, leftToRight, mergerRegistry
-
Fields inherited from class org.eclipse.emf.edit.command.ChangeCommand
changeDescription, changeRecorder, notifier, notifiers
-
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
-
-
Constructor Summary
Constructors Constructor Description MergeAllNonConflictingCommand(ChangeRecorder changeRecorder, Collection<Notifier> notifiers, Comparison comparison, boolean leftToRight, IMerger.Registry mergerRegistry, IMergeAllNonConflictingRunnable runnable)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute()
-
Methods inherited from class org.eclipse.emf.compare.command.impl.AbstractCopyCommand
canExecute, dispose, getAffectedObjects, getChangedDiffs, getChangedDiffs, isLeftToRight
-
Methods inherited from class org.eclipse.emf.edit.command.ChangeCommand
createChangeRecorder, disposeChangeRecorder, execute, getChangeDescription, getChangeRecorder, prepare, redo, setChangeDescription, undo
-
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canUndo, chain, getDescription, getLabel, getResult, setDescription, setLabel, toString
-
-
-
-
Constructor Detail
-
MergeAllNonConflictingCommand
public MergeAllNonConflictingCommand(ChangeRecorder changeRecorder, Collection<Notifier> notifiers, Comparison comparison, boolean leftToRight, IMerger.Registry mergerRegistry, IMergeAllNonConflictingRunnable runnable)
Creates a new instance.- Parameters:
changeRecorder
- The change recorder associated to this command.notifiers
- The collection of notifiers that will be notified of this command's execution.comparison
- The comparison which differences this command will merge.leftToRight
- The direction in whichdifferences
should be merged.runnable
- The runnable to execute for the actual merge operation.mergerRegistry
- The registry of mergers.
-
-
Method Detail
-
doExecute
protected void doExecute()
- Specified by:
doExecute
in classChangeCommand
- See Also:
ChangeCommand.doExecute()
-
-