Package org.eclipse.egit.ui.internal.components

Examples of org.eclipse.egit.ui.internal.components.RepositorySelection


  private RepositorySelection getRepositorySelection() {
    AddRemotePage remotePage = getAddRemotePage();
    if (remotePage != null)
      return remotePage.getSelection();
    else
      return new RepositorySelection(null,
          pushBranchPage.getRemoteConfig());
  }
View Full Code Here


  }

  @Override
  public boolean canFinish() {
    if (getContainer().getCurrentPage() == repoPage) {
      RepositorySelection sel = repoPage.getSelection();
      if (sel.isConfigSelected()) {
        RemoteConfig config = sel.getConfig();
        return !config.getPushURIs().isEmpty()
            || !config.getURIs().isEmpty();
      }
    }
    return super.canFinish();
View Full Code Here

  @Override
  public IWizardPage getStartingPage() {
    // only now do we set the selection (which will be progress-monitored by
    // the wizard)
    page.setSelection(new RepositorySelection(null, config));
    return super.getStartingPage();
  }
View Full Code Here

  }

  @Override
  public boolean canFinish() {
    if (getContainer().getCurrentPage() == repoPage) {
      RepositorySelection sel = repoPage.getSelection();
      if (sel.isConfigSelected()) {
        RemoteConfig config = sel.getConfig();
        return !config.getURIs().isEmpty()
            && !config.getFetchRefSpecs().isEmpty();
      }
    }
    return super.canFinish();
View Full Code Here

    }

    final FetchOperationUI op;
    int timeout = Activator.getDefault().getPreferenceStore().getInt(
        UIPreferences.REMOTE_CONNECTION_TIMEOUT);
    final RepositorySelection repoSelection = repoPage.getSelection();

    if (calledFromRepoPage)
      op = new FetchOperationUI(localDb, repoSelection.getConfig(),
          timeout, false);
    else if (repoSelection.isConfigSelected())
      op = new FetchOperationUI(localDb, repoSelection.getConfig()
          .getURIs().get(0), refSpecPage.getRefSpecs(), timeout,
          false);
    else
      op = new FetchOperationUI(localDb, repoSelection.getURI(false),
          refSpecPage.getRefSpecs(), timeout, false);

    UserPasswordCredentials credentials = repoPage.getCredentials();
    if (credentials != null)
      op.setCredentialsProvider(new UsernamePasswordCredentialsProvider(
View Full Code Here

      // Continue, it's not critical.
    }
  }

  private String getSourceString() {
    final RepositorySelection repoSelection = repoPage.getSelection();
    if (repoSelection.isConfigSelected())
      return repoSelection.getConfigName();
    return repoSelection.getURI(false).toString();
  }
View Full Code Here

      return false;
    }
  }

  private RepositorySelection getRepositorySelection() {
    return new RepositorySelection(null,
        pushTagsPage.getSelectedRemoteConfig());
  }
View Full Code Here

  /**
   * @return the repository selected by the user
   */
  protected RepositorySelection getRepositorySelection() {
    try {
      return (new RepositorySelection(new URIish(currentSearchResult.getGitRepositoryInfo().getCloneUri()), null));
    } catch (URISyntaxException e) {
      Activator.error(UIText.GitImportWizard_errorParsingURI, e);
      return null;
    } catch (NoRepositoryInfoException e) {
      Activator.error(UIText.GitImportWizard_noRepositoryInfo, e);
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.components.RepositorySelection

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.