Examples of rightStart()


Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.rightStart()

    RangeDifference diff= null;
    final List differences= fDifferences;
    synchronized (differences) {
      for (Iterator it= differences.iterator(); it.hasNext();) {
        diff= (RangeDifference) it.next();
        if (line >= diff.rightStart() && line < diff.rightEnd()) {
          if (diff.kind() == RangeDifference.NOCHANGE && it.hasNext())
            diff= (RangeDifference) it.next();
          break;
        }
      }
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.rightStart()

    if (consistentBefore.kind() == RangeDifference.NOCHANGE) {
      int unchanged;
      if (leftToRight)
        unchanged= Math.min(fFirstLine, consistentBefore.leftEnd()) - consistentBefore.leftStart();
      else
        unchanged=  Math.min(fFirstLine, consistentBefore.rightEnd()) - consistentBefore.rightStart();

      shiftBefore= Math.max(0, unchanged - size);
    }

    int shiftAfter= 0;
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.rightStart()

    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);
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.rightStart()

    if (shiftBefore > 0) {
      RangeDifference first= (RangeDifference) diffs.get(0);
      if (first.kind() == RangeDifference.NOCHANGE)
        first.extendStart(-shiftBefore);
      else
        diffs.add(0, new RangeDifference(RangeDifference.NOCHANGE, first.rightStart() - shiftBefore, shiftBefore, first.leftStart() - shiftBefore, shiftBefore));
    }

    RangeDifference last= (RangeDifference) diffs.get(diffs.size() - 1);
    if (shiftAfter > 0) {
      if (last.kind() == RangeDifference.NOCHANGE)
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.rightStart()

      while (it.hasNext()) {
        current= (RangeDifference) it.next();
        if (init) {
          init= false;
          leftShift= last.leftEnd() - current.leftStart();
          rightShift= last.rightEnd() - current.rightStart();
          if (leftShift != 0 || rightShift != 0)
            changed= true;
          else
            break;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.