Package org.eclipse.team.internal.core.history

Examples of org.eclipse.team.internal.core.history.LocalFileHistory.refresh()


    String filename = commandLine.getValue(Options.FILE_OPTION);
    long revision = commandLine.getLongValue(Options.REVISION_OPTION);

    File file = (File)ProjectUtils.getFile(project, filename);
    LocalFileHistory history = new LocalFileHistory(file, false);
    history.refresh(new NullProgressMonitor());
    IFileRevision[] revisions = history.getFileRevisions();
    for(IFileRevision rev : revisions){
      if (rev.getTimestamp() == revision){
        return IOUtils.toString(
            rev.getStorage(new NullProgressMonitor()).getContents());
View Full Code Here


    String filename = commandLine.getValue(Options.FILE_OPTION);

    File file = (File)ProjectUtils.getFile(project, filename);
    LocalFileHistory history =
      new LocalFileHistory(file, false /* include current */);
    history.refresh(new NullProgressMonitor());
    IFileRevision[] revisions = history.getFileRevisions();
    Arrays.sort(revisions, new Comparator<IFileRevision>(){
      public int compare(IFileRevision r1, IFileRevision r2){
        return (int)(r2.getTimestamp() - r1.getTimestamp());
      }
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.