Package org.eclipse.compare.internal

Examples of org.eclipse.compare.internal.LCSSettings


     * @return an array of range differences, or an empty array if no
     *         differences were found
     */
    public static RangeDifference[] findDifferences(IRangeComparator left,
            IRangeComparator right) {
        return findDifferences( new LCSSettings(),
                left, right);
    }
View Full Code Here


    public boolean skipRangeComparison(int arg0, int arg1, IRangeComparator arg2) {
        return false;
    }

    public double getMatchRatio(StringComparator other) {
        LCSSettings settings = new LCSSettings();
        settings.setUseGreedyMethod(true);
        settings.setPowLimit(1.5);
        settings.setTooLong(150 * 150);

        RangeDifference[] differences = RangeDifferencer.findDifferences(
                settings, other, this);
        int distanceOther = 0;
        for (RangeDifference d : differences) {
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void diff(TextNodeComparator leftComparator,
      TextNodeComparator rightComparator) throws SAXException {
    LCSSettings settings = new LCSSettings();
    settings.setUseGreedyMethod(false);
    // settings.setPowLimit(1.5);
    // settings.setTooLong(100000*100000);

    RangeDifference[] differences = RangeDifferencer.findDifferences(
        settings, leftComparator, rightComparator);
View Full Code Here

  public void diff(TextNodeComparator ancestorComparator,
      TextNodeComparator leftComparator,
      TextNodeComparator rightComparator) throws SAXException {

    LCSSettings settings = new LCSSettings();
    settings.setUseGreedyMethod(false);
    // settings.setPowLimit(1.5);
    // settings.setTooLong(100000*100000);
    org.eclipse.compare.rangedifferencer.RangeDifference[] differences = RangeDifferencer
        .findDifferences(settings, ancestorComparator, leftComparator,
            rightComparator);
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void diff(TextNodeComparator leftComparator,
      TextNodeComparator rightComparator) throws SAXException {
    LCSSettings settings = new LCSSettings();
    settings.setUseGreedyMethod(false);
    // settings.setPowLimit(1.5);
    // settings.setTooLong(100000*100000);

    RangeDifference[] differences = RangeDifferencer.findDifferences(
        settings, leftComparator, rightComparator);
View Full Code Here

  public boolean skipRangeComparison(int arg0, int arg1, IRangeComparator arg2) {
    return false;
  }

  public double getMatchRatio(TextOnlyComparator other) {
    LCSSettings settings = new LCSSettings();
    settings.setUseGreedyMethod(true);
    settings.setPowLimit(1.5);
    settings.setTooLong(150 * 150);

    RangeDifference[] differences = RangeDifferencer.findDifferences(
        settings, other, this);
    int distanceOther = 0;
    for (RangeDifference d : differences) {
View Full Code Here

   * @return an array of range differences, or an empty array if no
   *         differences were found
   */
  public static RangeDifference[] findDifferences(IRangeComparator left,
      IRangeComparator right) {
    return findDifferences((IProgressMonitor) null, new LCSSettings(),
        left, right);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.compare.internal.LCSSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.