Class CopyCommand

  • All Implemented Interfaces:
    Command, ICompareCopyCommand

    @Deprecated
    public class CopyCommand
    extends AbstractCopyCommand
    Deprecated.
    Use MergeCommand instead.
    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.

    • Constructor Detail

      • 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 which differences should be merged.
        mergerRegistry - The registry of mergers.
        Since:
        3.0