Package org.eclipse.compare.rangedifferencer

Examples of org.eclipse.compare.rangedifferencer.IRangeComparator


        }

        IHashFunction hash= new DJBHashFunction();
        DocumentEquivalenceClass leftEquivalent= new DocumentEquivalenceClass(reference, hash);
        fLeftEquivalent= leftEquivalent;
        IRangeComparator ref= new DocEquivalenceComparator(leftEquivalent, null);

        DocumentEquivalenceClass rightEquivalent= new DocumentEquivalenceClass(actual, hash);
        fRightEquivalent= rightEquivalent;
        IRangeComparator act= new DocEquivalenceComparator(rightEquivalent, null);
        List diffs= new ArrayList(Arrays.asList(RangeDifferencer.findRanges(fRangeDiffFactory, monitor, ref, act)));
        // 7:  Reset the model to the just gotten differences
        //     re-inject stored events to get up to date.
        synchronized (DocumentLineDiffer.this) {
          if (isCanceled(monitor))
View Full Code Here


    int leftLine= consistentAfter.leftEnd();
    if (leftToRight)
      leftLine += lineDelta;
    int leftEndLine= leftLine - shiftAfter;
    ILineRange leftRange= new LineRange(leftStartLine, leftEndLine - leftStartLine);
    IRangeComparator reference= new DocEquivalenceComparator(leftEquivalent, leftRange);

    // right (actual) document
    int rightStartLine= consistentBefore.rightStart() + shiftBefore;
    int rightLine= consistentAfter.rightEnd();
    if (!leftToRight)
      rightLine += lineDelta;
    int rightEndLine= rightLine - shiftAfter;
    ILineRange rightRange= new LineRange(rightStartLine, rightEndLine - rightStartLine);
    IRangeComparator change= new DocEquivalenceComparator(rightEquivalent, rightRange);

    // put an upper bound to the delay we can afford
    if (leftLine - shiftAfter - leftStartLine > 50 || rightLine - shiftAfter - rightStartLine > 50) {
      initialize();
      return;
View Full Code Here

TOP

Related Classes of org.eclipse.compare.rangedifferencer.IRangeComparator

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.