Package org.eclipse.jface.text.revisions

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


   */
  private void onFocusRangeChanged(RevisionRange previousRange, RevisionRange nextRange) {
    if (DEBUG)
      System.out.println("range: " + previousRange + " > " + nextRange); //$NON-NLS-1$ //$NON-NLS-2$
    fFocusRange= nextRange;
    Revision revision= nextRange == null ? null : nextRange.getRevision();
    updateFocusRevision(revision);
  }
View Full Code Here


    if (fRequiredWidth == -1) {
      if (hasInformation() && (fShowRevision || fShowAuthor)) {
        int revisionWidth= 0;
        int authorWidth= 0;
        for (Iterator it= fRevisionInfo.getRevisions().iterator(); it.hasNext();) {
          Revision revision= (Revision) it.next();
          revisionWidth= Math.max(revisionWidth, revision.getId().length());
          authorWidth= Math.max(authorWidth, revision.getAuthor().length());
        }
        fRevisionIdChars= revisionWidth + 1;
        if (fShowAuthor && fShowRevision)
          fRequiredWidth= revisionWidth + authorWidth + 2;
        else if (fShowAuthor)
View Full Code Here

      if (info == null)
        return;
      List revisions= new ArrayList();
      for (Iterator it= info.getRevisions().iterator(); it.hasNext();) {
        Revision revision= (Revision) it.next();
        revisions.add(new Long(computeAge(revision)));
      }
      Collections.sort(revisions);
      fRevisions= revisions;
    }
View Full Code Here

        RevisionRange upRegion= fFocusRange;
        RevisionRange downRegion= fMouseDownRegion;
        fMouseDownRegion= null;

        if (upRegion == downRegion) {
          Revision revision= upRegion == null ? null : upRegion.getRevision();
          if (revision == fSelectedRevision)
            revision= null; // deselect already selected revision
          handleRevisionSelected(revision);
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.revisions.Revision

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.