Examples of rightEnd()


Examples of com.dotcms.repackage.org.eclipse.compare.rangedifferencer.RangeDifference.rightEnd()

                    txt.addHtml("</li>");

            }

            // right are the new ones
            for (int i = d.rightStart(); i < d.rightEnd(); i++) {
                if (lvl1listopened)
                    txt.addHtml("<li>");

                // add a bullet for a new tag
                addTagNew(txt, this.getAncestor(i));
View Full Code Here

Examples of org.eclipse.compare.rangedifferencer.RangeDifference.rightEnd()


        EventSequence seq2 = new EventSequence();
        // Evil hack - doesn't work
        //seq2.mapPrefix("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "w");
        for (int k = rdi.rightStart() ; k< rdi.rightEnd() ; k++) {
          if (rdi.kind()==rdi.CHANGE) {
            // This is the RHS of the diff
            //rightReport.append( "#" );
            seq2.addSequence(rightESC.getItem(k));
View Full Code Here

Examples of org.eclipse.compare.rangedifferencer.RangeDifference.rightEnd()

        ArrayList<Integer> regions = new ArrayList<Integer>();
        for (int i = 0; i < differences.length; i++) {
            RangeDifference curr = differences[i];
            if (curr.kind() == RangeDifference.CHANGE && curr.rightLength() > 0) {
                int startLine = curr.rightStart();
                int endLine = curr.rightEnd() - 1;

                if (startLine == endLine) {
                    regions.add(startLine);
                } else {
                    for (int iLine = startLine; iLine <= endLine; iLine++) {
View Full Code Here

Examples of org.eclipse.compare.rangedifferencer.RangeDifference.rightEnd()

          txt.addHtml("</li>");

      }

      // right are the new ones
      for (int i = d.rightStart(); i < d.rightEnd(); i++) {
        if (lvl1listopened)
          txt.addHtml("<li>");

        // add a bullet for a new tag
        addTagNew(txt, this.getAncestor(i));
View Full Code Here

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

    for (ListIterator it= fDifferences.listIterator(); it.hasNext();) {
      RangeDifference difference= (RangeDifference) it.next();
      if (found == null)
        found= difference;
      else if (difference.kind() == RangeDifference.NOCHANGE) {
        unchanged= Math.min(line, difference.rightEnd()) - difference.rightStart();
        if (unchanged >= size)
          found= difference;
      }

      if (difference.rightEnd() >= line)
View Full Code Here

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

        unchanged= Math.min(line, difference.rightEnd()) - difference.rightStart();
        if (unchanged >= size)
          found= difference;
      }

      if (difference.rightEnd() >= line)
        break;
    }

    return found;
  }
View Full Code Here

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

    for (ListIterator it= fDifferences.listIterator(fDifferences.size()); it.hasPrevious();) {
      RangeDifference difference= (RangeDifference) it.previous();
      if (found == null)
        found= difference;
      else if (difference.kind() == RangeDifference.NOCHANGE) {
        unchanged= difference.rightEnd() - Math.max(line + 1, difference.rightStart()); // + 1 to step over the changed line
        if (unchanged >= size)
          found= difference;
      }

      if (difference.rightStart() <= line)
View Full Code Here

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

   */
  private int getRightLine(int leftLine) {
    RangeDifference d= getRangeDifferenceForLeftLine(leftLine);
    if (d == null)
      return -1;
    return Math.min(d.rightEnd() - 1, d.rightStart() + leftLine - d.leftStart());
  }

  /**
   * Gets the RangeDifference for a line on the left hand side.
   *
 
View Full Code Here

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

  private RangeDifference getRangeDifferenceForRightLine(int rightLine) {
    final List differences= fDifferences;
    synchronized (differences) {
      for (Iterator it= differences.iterator(); it.hasNext();) {
        RangeDifference d= (RangeDifference) it.next();
        if (rightLine >= d.rightStart() && rightLine < d.rightEnd()) {
          return d;
        }
      }
    }
    return null;
View Full Code Here

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

  public Position getPosition(Annotation annotation) {
    if (fRightDocument != null && annotation instanceof DiffRegion) {
      RangeDifference difference= ((DiffRegion)annotation).getDifference();
      try {
        int offset= fRightDocument.getLineOffset(difference.rightStart());
        return new Position(offset, fRightDocument.getLineOffset(difference.rightEnd() - 1) + fRightDocument.getLineLength(difference.rightEnd() - 1) - offset);
      } catch (BadLocationException e) {
        // ignore and return null;
      }
    }
    return null;
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.