Package org.eclipse.egit.ui.internal.push

Examples of org.eclipse.egit.ui.internal.push.PushOperationUI


    String objid = repository.getRef("refs/heads/master").getTarget()
        .getObjectId().name();
    objid = objid.substring(0, 7);
    touchAndSubmit(null);
    // push from other repository
    PushOperationUI op =new PushOperationUI(repository, "origin", false);
    op.start();

    String pushdialogTitle = NLS.bind(UIText.PushResultDialog_title,
        op.getDestinationString());

    bot.shell(pushdialogTitle).close();

    deleteAllProjects();
View Full Code Here


        continue;
      }

      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

                e, true);
          }
        }
      });
    } else {
      PushOperationUI op = new PushOperationUI(repository,
          config.getName(), false);
      op.start();
    }

  }
View Full Code Here

          UIText.SimplePushActionHandler_NothingToPushDialogTitle,
          UIText.SimplePushActionHandler_NothingToPushDialogMessage);
      return null;
    }

    PushOperationUI op = new PushOperationUI(repository, config.getName(), false);
    op.start();
    return null;
  }
View Full Code Here

   * @param shell
   */
  public static void pushOrConfigure(final Repository repository,
      RemoteConfig config, Shell shell) {
    if (config != null) {
      PushOperationUI op = new PushOperationUI(repository,
          config.getName(), false);
      op.start();
    } else {
      Ref head = getHeadIfSymbolic(repository);
      if (head != null) {
        PushBranchWizard pushBranchWizard = new PushBranchWizard(
            repository, head);
View Full Code Here

    myRepository.getConfig().setString("remote", "mixed", "fetch",
        "+refs/heads/*:refs/heads/*");

    myRepository.getConfig().save();
    // and push
    PushOperationUI pa = new PushOperationUI(myRepository, "push", false);
    pa.execute(null);

    try {
      // delete the stable branch again
      RefUpdate op = myRepository.updateRef("refs/heads/stable");
      op.setRefLogMessage("branch deleted", //$NON-NLS-1$
View Full Code Here

      MessageDialog.openInformation(getShell(event),
          UIText.SimplePushActionHandler_NothingToPushDialogTitle,
          UIText.SimplePushActionHandler_NothingToPushDialogMessage);
      return null;
    }
    new PushOperationUI(node.getRepository(), config.getName(), false)
        .start();
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.push.PushOperationUI

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.