Package org.eclipse.team.core

Examples of org.eclipse.team.core.TeamException


          Git git = new Git(repository);
          git.rebase().setUpstream(commit.getParent(0))
              .runInteractively(handler)
              .setOperation(RebaseCommand.Operation.BEGIN).call();
        } catch (GitAPIException e) {
          throw new TeamException(e.getLocalizedMessage(),
              e.getCause());
        }
        pm.worked(1);

        ProjectUtil.refreshValidProjects(
View Full Code Here


          if (message != null)
            command.setWorkingDirectoryMessage(message);
          command.setIncludeUntracked(includeUntracked);
          commit = command.call();
        } catch (JGitInternalException e) {
          throw new TeamException(e.getLocalizedMessage(),
              e.getCause());
        } catch (GitAPIException e) {
          throw new TeamException(e.getLocalizedMessage(),
              e.getCause());
        } finally {
          if (commit != null)
            repository.notifyIndexChanged();
          pm.done();
View Full Code Here

          Git git = new Git(repository);
          git.rebase().setUpstream(commits.get(0).getParent(0))
              .runInteractively(handler)
              .setOperation(RebaseCommand.Operation.BEGIN).call();
        } catch (GitAPIException e) {
          throw new TeamException(e.getLocalizedMessage(),
              e.getCause());
        }
        pm.worked(1);

        ProjectUtil.refreshValidProjects(
View Full Code Here

        return repositoryPath;
      else {
        final Collection<String> projectNames = new LinkedList<String>();
        for (final ProjectReference projectReference : projects)
          projectNames.add(projectReference.getProjectDir());
        throw new TeamException(
            NLS.bind(CoreText.GitProjectSetCapability_CloneToExistingDirectory,
                new Object[] { workDir, projectNames, gitUrl }));
      }
    } else {
      try {
View Full Code Here

              projectReferences);
        }

        projectReferences.add(projectReference);
      } catch (final IllegalArgumentException e) {
        throw new TeamException(reference, e);
      } catch (final URISyntaxException e) {
        throw new TeamException(reference, e);
      }
    }

    return repositories;
  }
View Full Code Here

  private static TeamException getTeamException(final Throwable throwable) {
    Throwable current = throwable;
    while (current.getCause() != null)
      current = current.getCause();
    return new TeamException(current.getMessage(), current);
  }
View Full Code Here

    public SyncInfo getSyncInfo(IResource resource) throws TeamException {
        try {
            return syncController.getSyncInfo(resource);
        } catch (Exception e) {
            logger.error("Unable to synchronize with server", e);
            throw new TeamException("Unable to synchronize with server", e);
        }
    }
View Full Code Here

        try {
            componentSubscriber = new ComponentSubscriber(project, syncResources);
        } catch (ForceProjectException e) {
            logger.error("Unable to get instance of component subscriber", e);
            throw new TeamException("Unable to get instance of component subscriber", e);
        }

        componentSubscriber.loadRemoteComponents(monitor);

        monitorWorkCheck(monitor);
View Full Code Here

          nonDerivedMembers.add(members[i]);
        }
      }
      return (IResource[]) nonDerivedMembers.toArray(new IResource[nonDerivedMembers.size()]);
    } catch (CoreException e) {
      throw new TeamException(e.getStatus());
    }
  }
View Full Code Here

          throw new OperationCanceledException();
        }
      } catch (InterruptedException e) {
        // TODO: do we want to handle this differently...?
        Thread.interrupted();
        throw new TeamException("Interrupted whilst fetching members"); //$NON-NLS-1$
      }
    }
    monitor.done();

    Object tmpValue = returnValue;
View Full Code Here

TOP

Related Classes of org.eclipse.team.core.TeamException

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.