/** * Finds the differences between two <code>IRangeComparator</code>s. The differences are returned * as an array of <code>RangeDifference</code>s. If no differences are detected an empty array is * returned. * * @param pm if not <code>null</code> used to report progress * @param left the left range comparator * @param right the right range comparator * @return an array of range differences, or an empty array if no differences were found * @since 2.0 */ public static RangeDifference[] findDifferences( IProgressMonitor pm, LCSSettings settings, IRangeComparator left, IRangeComparator right) { // if (!settings.isUseGreedyMethod()) { // return OldDifferencer.findDifferences(pm, left, right); // } return RangeComparatorLCS.findDifferences(pm, settings, left, right); }
public static RangeDifference[] newDifferencer( LCSSettings settings, IRangeComparator left, IRangeComparator right) { return RangeComparatorLCS.findDifferences((IProgressMonitor) null, settings, left, right); }