Examples of EGitCredentialsProvider


Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

      }

      if (rc.getPushRefSpecs().isEmpty())
        rc.addPushRefSpec(new RefSpec(HEAD + ":" + gsd.getDstMerge())); //$NON-NLS-1$
      PushOperationUI push = new PushOperationUI(repo, rc, false);
      push.setCredentialsProvider(new EGitCredentialsProvider());
      push.start();
    }
  }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

        .deriveSpecification(confirmationPage
            .isRequireUnchangedSelected());

    PushOperationUI pushOperationUI = new PushOperationUI(repository,
        pushSpec, false);
    pushOperationUI.setCredentialsProvider(new EGitCredentialsProvider());
    pushOperationUI.setShowConfigureButton(false);
    if (confirmationPage.isShowOnlyIfChangedSelected())
      pushOperationUI.setExpectedResult(result);
    pushOperationUI.start();
  }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

   * @throws CoreException
   */
  public FetchResult execute(IProgressMonitor monitor) throws CoreException {
    try {
      if (op.getCredentialsProvider() == null)
        op.setCredentialsProvider(new EGitCredentialsProvider());
      op.run(monitor);
      return op.getOperationResult();
    } catch (InvocationTargetException e) {
      throw new CoreException(Activator.createErrorStatus(e.getCause()
          .getMessage(), e.getCause()));
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

        .deriveSpecification(confirmationPage
            .isRequireUnchangedSelected());

    PushOperationUI pushOperationUI = new PushOperationUI(repository,
        pushSpec, false);
    pushOperationUI.setCredentialsProvider(new EGitCredentialsProvider());
    pushOperationUI.setShowConfigureButton(false);
    if (confirmationPage.isShowOnlyIfChangedSelected())
      pushOperationUI.setExpectedResult(confirmationPage
          .getConfirmedResult());
    pushOperationUI.start();
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

      throws CoreException {
    createPushOperation();
    if (credentialsProvider != null)
      op.setCredentialsProvider(credentialsProvider);
    else
      op.setCredentialsProvider(new EGitCredentialsProvider());
    try {
      op.run(monitor);
      return op.getOperationResult();
    } catch (InvocationTargetException e) {
      throw new CoreException(Activator.createErrorStatus(e.getCause()
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

        .getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT);
    final CloneOperation op = new CloneOperation(uri, allSelected,
        selectedBranches, workdir, ref != null ? ref.getName() : null,
        remoteName, timeout);
    if (credentials != null)
      op.setCredentialsProvider(new EGitCredentialsProvider(
          credentials.getUser(), credentials.getPassword()));
    else
      op.setCredentialsProvider(new EGitCredentialsProvider());
    op.setCloneSubmodules(cloneDestination.isCloneSubmodules());

    configureFetchSpec(op, gitRepositoryInfo, remoteName);
    configurePush(op, gitRepositoryInfo, remoteName);
    configureRepositoryConfig(op, gitRepositoryInfo);
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

        continue;
      }

      FetchOperationUI fetchOperationUI = new FetchOperationUI(repo,
          config, timeout, false);
      fetchOperationUI.setCredentialsProvider(new EGitCredentialsProvider());
      SubMonitor subMonitor = SubMonitor.convert(monitor);

      try {
        fetchOperationUI.execute(subMonitor);
        gsd.updateRevs();
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

    this.repositories = repositories.toArray(new Repository[repositories
        .size()]);
    int timeout = Activator.getDefault().getPreferenceStore().getInt(
        UIPreferences.REMOTE_CONNECTION_TIMEOUT);
    pullOperation = new PullOperation(repositories, timeout);
    pullOperation.setCredentialsProvider(new EGitCredentialsProvider());
    for (Repository repository : repositories)
      results.put(repository, NOT_TRIED_STATUS);
  }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

      PushOperationSpecification spec = new PushOperationSpecification();

      spec.addURIRefUpdates(uri, Arrays.asList(update));
      final PushOperationUI op = new PushOperationUI(repository, spec,
          false);
      op.setCredentialsProvider(new EGitCredentialsProvider());
      final PushOperationResult[] result = new PushOperationResult[1];
      getContainer().run(true, true, new IRunnableWithProgress() {
        public void run(IProgressMonitor monitor)
            throws InvocationTargetException, InterruptedException {
          try {
View Full Code Here

Examples of org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider

      int timeout = Activator.getDefault().getPreferenceStore().getInt(
          UIPreferences.REMOTE_CONNECTION_TIMEOUT);
      listRemoteOp = new ListRemoteOperation(db, uri, timeout);
      if (credentials != null)
        listRemoteOp
            .setCredentialsProvider(new EGitCredentialsProvider(
                credentials.getUser(), credentials
                    .getPassword()));
      getContainer().run(true, true, new IRunnableWithProgress() {
        public void run(IProgressMonitor monitor)
            throws InvocationTargetException, InterruptedException {
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.