Examples of RemoteConfig


Examples of org.eclipse.jgit.transport.RemoteConfig

      }
    });
  }

  private void pushUpstream(final RevCommit commit) {
    RemoteConfig config = SimpleConfigurePushDialog
        .getConfiguredRemote(repository);
    if (config == null) {
      final Display display = Display.getDefault();
      display.asyncExec(new Runnable() {

        public void run() {
          try {
            PushBranchWizard pushWizard = null;
            String fullBranch = repository.getFullBranch();
            if (fullBranch != null
                && fullBranch.startsWith(Constants.R_HEADS)) {
              Ref ref = repository.getRef(fullBranch);
              pushWizard = new PushBranchWizard(repository, ref);
            } else {
              pushWizard = new PushBranchWizard(repository,
                  commit.getId());
            }
            WizardDialog wizardDialog = new WizardDialog(display
                .getActiveShell(), pushWizard);
            wizardDialog.setHelpAvailable(true);
            wizardDialog.open();
          } catch (IOException e) {
            Activator.handleError(
                NLS.bind(UIText.CommitUI_pushFailedMessage, e),
                e, true);
          }
        }
      });
    } else {
      PushOperationUI op = new PushOperationUI(repository,
          config.getName(), false);
      op.start();
    }

  }
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.