Examples of shouldIncludeLocal()


Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeData.shouldIncludeLocal()

  }

  @Override
  public IDiff getDiff(IResource resource) throws CoreException {
    final GitSynchronizeData syncData = gsds.getData(resource.getProject());
    if (syncData == null || syncData.shouldIncludeLocal())
      return super.getDiff(resource);

    SyncInfo info = getSyncInfo(resource);
    if (info == null || info.getKind() == SyncInfo.IN_SYNC)
      return null;
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeData.shouldIncludeLocal()

     * @return The file revision that should be considered for the local
     *         (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) {
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeData.shouldIncludeLocal()

  @Override
  protected IResourceVariant fetchVariant(IResource resource, int depth,
      IProgressMonitor monitor) throws TeamException {
    if (resource != null) {
      GitSynchronizeData data = gsds.getData(resource.getProject());
      if (data != null && data.shouldIncludeLocal())
        return new GitLocalResourceVariant(resource);
    }

    return super.fetchVariant(resource, depth, monitor);
  }
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.