Package org.eclipse.team.core.mapping.provider

Examples of org.eclipse.team.core.mapping.provider.ResourceDiff


            kind = IDiff.CHANGE;

          if (local.getType() == IResource.FILE) {
            IFileRevision after = asFileState(remote);
            IFileRevision before = getLocalFileRevision((IFile) local);
            return new ResourceDiff(info.getLocal(), kind, 0,
                before, after);
          }
          // For folders, we don't need file states
          return new ResourceDiff(info.getLocal(), kind);
        }
        return null;
      }
    }
View Full Code Here


          kind = IDiff.CHANGE;

        if (local.getType() == IResource.FILE) {
          IFileRevision before = asFileState(ancestor);
          IFileRevision after = getLocalFileRevision((IFile) local);
          return new ResourceDiff(info.getLocal(), kind, 0, before,
              after);
        }
        // For folders, we don't need file states
        return new ResourceDiff(info.getLocal(), kind);

      }
      return null;
    }
View Full Code Here

        // For folders, we don't need file states
        if (info.getLocal().getType() == IResource.FILE) {
          IFileRevision before = asFileState(ancestor);
          IFileRevision after = asFileState(remote);
          return new ResourceDiff(info.getLocal(), kind, 0, before,
              after);
        }

        return new ResourceDiff(info.getLocal(), kind);
      }
      return null;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.team.core.mapping.provider.ResourceDiff

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.