Package org.eclipse.egit.ui.internal.revision

Examples of org.eclipse.egit.ui.internal.revision.LocalFileRevision


    }
  }

  private ITypedElement getTypedElement(FileNode node, IFileRevision fileRevision, String versionName) {
    if (fileRevision instanceof LocalFileRevision) {
      LocalFileRevision localFileRevision = (LocalFileRevision) fileRevision;
      return new ResourceEditableRevision(fileRevision, localFileRevision.getFile(), PlatformUI.getWorkbench().getProgressService());
    } else if (fileRevision == null) {
      return new GitCompareFileRevisionEditorInput.EmptyTypedElement(
          NLS.bind(
              UIText.CompareTreeView_ItemNotFoundInVersionMessage,
              node.getPath(), versionName));
View Full Code Here


        }

        if (baseVersionIterator != null) {
          if (baseCommit == null) {
            if (file != null)
              left = new LocalFileRevision(file);
            else {
              IPath path = getRepositoryPath().append(
                  repoRelativePath);
              left = new WorkingTreeFileRevision(
                  path.toFile());
View Full Code Here

        IPath location = repositoryPath
            .append(fit.getEntryPathString());
        IFile file = ResourceUtil.getFileForLocation(location);
        if (!conflicting || useWorkspace) {
          if (file != null)
            rev = new LocalFileRevision(file);
          else
            rev = new WorkingTreeFileRevision(location.toFile());
        } else {
          rev = GitFileRevision.inIndex(repository, gitPath,
              DirCacheEntry.STAGE_2);
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.revision.LocalFileRevision

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.