Examples of RevisionRange


Examples of com.softsizo.data.RevisionRange

        Repository repository = svnClientProvider.getRepository(url);
        data.setRepository(repository);
        long lastRevisionInRange =
            (config.getToRevision()==ConfigParameters.HEAD_REVISION)?
                    repository.getLatestRevision() : config.getToRevision();
        data.setRevisionRange(new RevisionRange(config.getFromRevision(),lastRevisionInRange));
        data.setRepositoryFilter(new RepositoryFilter(config.getInclude(), config.getExclude()));
    }
View Full Code Here

Examples of com.softsizo.data.RevisionRange

public class ChartBuilderTest extends TestCase {

  public void testRenderLocByAuthor() throws IOException {
    ExtractedData data = new ExtractedData();
    RevisionRange revisionRange = new RevisionRange(11, 101);
    data.setRevisionRange(revisionRange);
    ChartBuilder chartBuilder = new ChartBuilder(data);
    VersionedFile versionedFile = new VersionedFile("test");
    versionedFile.setCurrentLoc(new Author("sergio"), 22);
    versionedFile.setCurrentLoc(new Author("ivan"), 38);
View Full Code Here

Examples of com.softsizo.data.RevisionRange

 
  @Before
  public void setUpExtractedData(){
        Author author1 = new Author("sergio");
        Author author2 = new Author("ivan");
        RevisionRange revisionRange = new RevisionRange(1, 6);
        Repository repository = new Repository()
            .setRoot("http://svn.test.com")
            .setUrl("http://svn.test.com/trunk")
            .setUuid("1234567890");
        data = new ExtractedData();
View Full Code Here

Examples of org.eclipse.jface.text.revisions.RevisionRange

    }
   
    // draw change regions
    List/* <RevisionRange> */ranges= getRanges(visibleLines);
    for (Iterator it= ranges.iterator(); it.hasNext();) {
      RevisionRange region= (RevisionRange) it.next();
      paintRange(region, gc);
    }
  }
View Full Code Here

Examples of org.eclipse.jface.text.revisions.RevisionRange

    if (ranges.isEmpty() || line == -1)
      return null;

    for (Iterator it= ranges.iterator(); it.hasNext();) {
      RevisionRange range= (RevisionRange) it.next();
      if (contains(range, line))
        return range;
    }

    // line may be right after the last region
    RevisionRange lastRegion= (RevisionRange) ranges.get(ranges.size() - 1);
    if (line == end(lastRegion))
      return lastRegion;
    return null;
  }
View Full Code Here

Examples of org.eclipse.jface.text.revisions.RevisionRange

    // return the interesting subset
    int end= end(lines);
    int first= -1, last= -1;
    for (int i= 0; i < ranges.size(); i++) {
      RevisionRange range= (RevisionRange) ranges.get(i);
      int rangeEnd= end(range);
      if (first == -1 && rangeEnd > lines.getStartLine())
        first= i;
      if (first != -1 && rangeEnd > end) {
        last= i;
View Full Code Here

Examples of org.eclipse.jface.text.revisions.RevisionRange

    Map added= null;
    if (revision != null) {
      added= new HashMap();
      for (Iterator it= revision.getRegions().iterator(); it.hasNext();) {
        RevisionRange range= (RevisionRange) it.next();
        try {
          IRegion charRegion= toCharRegion(range);
          Position position= new Position(charRegion.getOffset(), charRegion.getLength());
          Annotation annotation= new RevisionAnnotation(revision.getId());
          added.put(annotation, position);
View Full Code Here

Examples of org.eclipse.jface.text.revisions.RevisionRange

   */
  private void onFocusLineChanged(int previousLine, int nextLine) {
    if (DEBUG)
      System.out.println("line: " + previousLine + " > " + nextLine); //$NON-NLS-1$ //$NON-NLS-2$
    fFocusLine= nextLine;
    RevisionRange region= getRange(nextLine);
    updateFocusRange(region);
  }
View Full Code Here

Examples of org.eclipse.jface.text.revisions.RevisionRange

    ILineRange nextWidgetRange= null;
    ILineRange last= null;
    List ranges= fFocusRevision.getRegions();
    if (up) {
      for (Iterator it= ranges.iterator(); it.hasNext();) {
        RevisionRange range= (RevisionRange) it.next();
        ILineRange widgetRange= modelLinesToWidgetLines(range);
        if (contains(range, documentHoverLine)) {
          nextWidgetRange= last;
          break;
        }
        if (widgetRange != null)
          last= widgetRange;
      }
    } else {
      for (ListIterator it= ranges.listIterator(ranges.size()); it.hasPrevious();) {
        RevisionRange range= (RevisionRange) it.previous();
        ILineRange widgetRange= modelLinesToWidgetLines(range);
        if (contains(range, documentHoverLine)) {
          nextWidgetRange= last;
          break;
        }
View Full Code Here

Examples of org.eclipse.jface.text.revisions.RevisionRange

          line= document.getLineOfOffset(offset);
        } catch (BadLocationException x) {
          return null;
        }
      if (line != -1) {
        RevisionRange range= getRange(line);
        if (range != null)
          return range.getRevision();
      }
      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.