Examples of open()


Examples of org.eclipse.egit.ui.internal.dialogs.BranchEditDialog.open()

      public void widgetSelected(SelectionEvent selectionEvent) {
        String txt = branchText.getText();
        String refToMark = "".equals(txt) ? null : Constants.R_HEADS + txt; //$NON-NLS-1$
        AbstractBranchSelectionDialog dlg = new BranchEditDialog(
            checkoutGroup.getShell(), repository, refToMark);
        if (dlg.open() == Window.OK) {
          branchText.setText(Repository.shortenRefName(dlg
              .getRefName()));
        } else {
          // force calling branchText's modify listeners
          branchText.setText(branchText.getText());
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.CommitDialog.open()

    commitDialog.setAuthor(commitHelper.getAuthor());
    commitDialog.setCommitter(commitHelper.getCommitter());
    commitDialog.setAllowToChangeSelection(!commitHelper.isMergedResolved && !commitHelper.isCherryPickResolved);
    commitDialog.setCommitMessage(commitHelper.getCommitMessage());

    if (commitDialog.open() != IDialogConstants.OK_ID)
      return false;

    final CommitOperation commitOperation;
    try {
      commitOperation= new CommitOperation(
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.CommitSelectDialog.open()

      HandlerUtil.getActiveShell(event).getDisplay()
          .syncExec(new Runnable() {
            public void run() {
              CommitSelectDialog dlg = new CommitSelectDialog(
                  HandlerUtil.getActiveShell(event), commits);
              if (dlg.open() == Window.OK)
                for (PreviousCommit pc : previousList)
                  if (pc.commit.equals(dlg
                      .getSelectedCommit())) {
                    previous.set(pc);
                    break;
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.CompareTargetSelectionDialog.open()

    final IResource[] resources = getSelectedResources(event);

    CompareTargetSelectionDialog dlg = new CompareTargetSelectionDialog(
        getShell(event), repo, resources.length == 1 ? resources[0]
            .getFullPath().lastSegment() : null);
    if (dlg.open() != Window.OK)
      return null;

    final String refName = dlg.getRefName();

    IWorkbenchPage workBenchPage = PlatformUI.getWorkbench()
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.CreateTagDialog.open()

      Repository repository = commit.getRepository();
      CreateTagDialog dialog = new CreateTagDialog(
          HandlerUtil.getActiveShellChecked(event), commit
              .getRevCommit().getId(), repository);

      if (dialog.open() != Window.OK)
        return null;

      final TagBuilder tag = new TagBuilder();
      PersonIdent personIdent = new PersonIdent(repository);
      String tagName = dialog.getTagName();
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.CustomPromptDialog.open()

   *     <code>false</code> if the user canceled the request and did not supply all requested values.
   */
  private boolean getMultiSpecial(Shell shell, URIish uri, CredentialItem... items) {
    CustomPromptDialog dialog = new CustomPromptDialog(shell, uri, UIText.EGitCredentialsProvider_information, items);
    dialog.setBlockOnOpen(true);
    int r = dialog.open();
    if (r == Window.OK) {
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.GitTraceConfigurationDialog.open()

          configurationDialog.close();

        GitTraceConfigurationDialog dlg = new GitTraceConfigurationDialog(
            new Shell(Display.getDefault()));
        dlg.setBlockOnOpen(false);
        dlg.open();
        configurationDialog = bot.shell(
            UIText.GitTraceConfigurationDialog_ShellTitle)
            .activate();
      }
    });
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.MergeTargetSelectionDialog.open()

    if (!checkMergeIsPossible(repository, getShell(event)))
      return null;
    BasicConfigurationDialog.show(repository);
    MergeTargetSelectionDialog mergeTargetSelectionDialog = new MergeTargetSelectionDialog(
        getShell(event), repository);
    if (mergeTargetSelectionDialog.open() == IDialogConstants.OK_ID) {

      final String refName = mergeTargetSelectionDialog.getRefName();

      String jobname = NLS.bind(UIText.MergeAction_JobNameMerge, refName);
      final MergeOperation op = new MergeOperation(repository, refName);
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.NewRemoteDialog.open()

  public Object execute(ExecutionEvent event) throws ExecutionException {
    RemotesNode node = getSelectedNodes(event).get(0);
    Repository repository = node.getRepository();

    NewRemoteDialog nrd = new NewRemoteDialog(getShell(event), repository);
    if (nrd.open() != Window.OK)
      return null;

    if (nrd.getPushMode())
      SimpleConfigurePushDialog.getDialog(getShell(event), repository,
          nrd.getName()).open();
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.RebaseTargetSelectionDialog.open()

      ref = null;

    if (ref == null) {
      RebaseTargetSelectionDialog rebaseTargetSelectionDialog = new RebaseTargetSelectionDialog(
          getShell(event), repository);
      if (rebaseTargetSelectionDialog.open() == IDialogConstants.OK_ID) {
        String refName = rebaseTargetSelectionDialog.getRefName();
        try {
          ref = repository.getRef(refName);
        } catch (IOException e) {
          throw new ExecutionException(e.getMessage(), e);
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.