Package org.eclipse.egit.core.internal.storage

Examples of org.eclipse.egit.core.internal.storage.WorkspaceFileRevision


     *         (left) side a delta
     */
    protected IFileRevision getLocalFileRevision(IFile local) {
      final GitSynchronizeData data = gsds.getData(local.getProject());
      if (data.shouldIncludeLocal())
        return new WorkspaceFileRevision(local);

      try {
        return asFileState(getSourceTree().getResourceVariant(local));
      } catch (TeamException e) {
        String error = NLS
            .bind(CoreText.GitResourceVariantTreeSubscriber_CouldNotFindSourceVariant,
                local.getName());
        Activator.logError(error, e);
        // fall back to the working tree version
        return new WorkspaceFileRevision(local);
      }
    }
View Full Code Here


        file);
    ITypedElement base = getHeadTypedElement(repository, path);
    if (base == null)
      return;

    IFileRevision nextFile = new WorkspaceFileRevision(file);
    String encoding = null;
    try {
      encoding = file.getCharset();
    } catch (CoreException e) {
      Activator.handleError(UIText.CompareUtils_errorGettingEncoding, e, true);
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.internal.storage.WorkspaceFileRevision

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.