Class AbstractCopyCommand

All Implemented Interfaces:
Command, ICompareCopyCommand
Direct Known Subclasses:
CopyCommand, MergeAllNonConflictingCommand, MergeCommand

public abstract class AbstractCopyCommand extends ChangeCommand implements ICompareCopyCommand
This command can be used to copy a number of diffs (or a single one) in a given direction.
Since:
3.0
  • Field Details

    • differences

      protected final List<? extends Diff> differences
      The list of differences we are to merge.
    • leftToRight

      protected final boolean leftToRight
      Direction of the merge operation.
    • mergerRegistry

      protected final IMerger.Registry mergerRegistry
      Merger registry.
  • Constructor Details

    • AbstractCopyCommand

      public AbstractCopyCommand(ChangeRecorder changeRecorder, Collection<Notifier> notifiers, List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry)
      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.
  • Method Details