Package org.eclipse.egit.core.project

Examples of org.eclipse.egit.core.project.RepositoryFinder.find()


      TableItem item = children[i];
      IProject data = (IProject) item.getData();
      RepositoryFinder repositoryFinder = new RepositoryFinder(data);
      repositoryFinder.setFindInChildren(false);
      try {
        Collection<RepositoryMapping> find = repositoryFinder
            .find(new NullProgressMonitor());
        if (find.size() != 1)
          item.setChecked(true);
      } catch (CoreException e1) {
        item.setText(2, e1.getMessage());
View Full Code Here


    for (IProject project : myWizard.projects) {
      RepositoryFinder repositoryFinder = new RepositoryFinder(project);
      repositoryFinder.setFindInChildren(false);
      try {
        Collection<RepositoryMapping> mappings;
        mappings = repositoryFinder.find(new NullProgressMonitor());
        Iterator<RepositoryMapping> mi = mappings.iterator();
        RepositoryMapping m = mi.hasNext() ? mi.next() : null;
        if (m == null) {
          // no mapping found, enable repository creation
          TreeItem treeItem = new TreeItem(tree, SWT.NONE);
View Full Code Here

              GitTraceLocation.CORE.getLocation(),
              "Locating repository for " + project); //$NON-NLS-1$

        RepositoryFinder finder = new RepositoryFinder(project);
        finder.setFindInChildren(false);
        Collection<RepositoryMapping> repos = finder.find(new SubProgressMonitor(monitor, 40));
        File suggestedRepo = projects.get(project);
        RepositoryMapping actualMapping= findActualRepository(repos, suggestedRepo);
        if (actualMapping != null) {
          GitProjectData projectData = new GitProjectData(project);
          try {
View Full Code Here

            if (project == null)
              continue;

            RepositoryFinder finder = new RepositoryFinder(project);
            finder.setFindInChildren(false);
            Collection<RepositoryMapping> mappings = finder
                .find(new SubProgressMonitor(actMonitor, 1));
            if (!mappings.isEmpty()) {
              RepositoryMapping mapping = mappings.iterator()
                  .next();
              projectsToConnect.put(project, mapping
View Full Code Here

      // team provider
      if (provider != null)
        return false;
      RepositoryFinder f = new RepositoryFinder(project);
      f.setFindInChildren(false);
      Collection<RepositoryMapping> mappings = f.find(new NullProgressMonitor());
      if (mappings.size() != 1)
        return false;

      RepositoryMapping m = mappings.iterator().next();
      IPath gitDirPath = m.getGitDirAbsolutePath();
View Full Code Here

        continue;

      RepositoryFinder f = new RepositoryFinder(project);
      f.setFindInChildren(false);
      try {
        Collection<RepositoryMapping> mappings = f
            .find(new NullProgressMonitor());
        if (mappings.size() == 1)
          connections.put(project, repositoryDir);
      } catch (CoreException e) {
        // Ignore this project in that case
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.