Class CopyCommand
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.CopyCommand
- All Implemented Interfaces:
Command
,ICompareCopyCommand
Deprecated.
This command can be used to copy a number of diffs (or a single one) in a given direction.
Note that this will merge all differences that are passed to it, whether they're conflicting or not.
-
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
ConstructorDescriptionCopyCommand
(ChangeRecorder changeRecorder, Collection<Notifier> notifiers, List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry) Deprecated.Constructs an instance of this command given the list of differences that it needs to merge. -
Method Summary
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 Details
-
CopyCommand
public CopyCommand(ChangeRecorder changeRecorder, Collection<Notifier> notifiers, List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry) Deprecated.Constructs an instance of this command given the list of differences that it needs to merge.- Parameters:
changeRecorder
- The change recorder associated to this command.notifiers
- The collection of notifiers that will be notified of this command's execution.differences
- The list of differences that this command should merge.leftToRight
- The direction in whichdifferences
should be merged.mergerRegistry
- The registry of mergers.- Since:
- 3.0
-
-
Method Details
-
doExecute
protected void doExecute()Deprecated.- Specified by:
doExecute
in classChangeCommand
- See Also:
-
MergeCommand
instead.