Package org.eclipse.egit.ui.internal.repository

Examples of org.eclipse.egit.ui.internal.repository.RepositorySearchWizard


    addRepo.addSelectionListener(new SelectionAdapter() {

      @Override
      public void widgetSelected(SelectionEvent e) {
        List<String> configuredDirs = util.getConfiguredRepositories();
        RepositorySearchWizard wizard = new RepositorySearchWizard(
            configuredDirs);
        WizardDialog dlg = new WizardDialog(getShell(), wizard);
        if (dlg.open() == Window.OK
            && !wizard.getDirectories().isEmpty()) {
          Set<String> dirs = wizard.getDirectories();
          for (String dir : dirs)
            util.addConfiguredRepository(new File(dir));
          checkPage();
        }
      }
View Full Code Here


* "Adds" repositories
*/
public class AddCommand extends
    RepositoriesViewCommandHandler<RepositoryTreeNode> {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    RepositorySearchWizard wizard = new RepositorySearchWizard(
        util.getConfiguredRepositories());
    WizardDialog dialog = new WizardDialog(getShell(event), wizard);
    if (dialog.open() == Window.OK) {
      for (String dir : wizard.getDirectories()) {
        File repositoryDir = new File(dir);
        addRepository(repositoryDir);
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.repository.RepositorySearchWizard

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.