Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.ConnectProviderOperation.execute()


  protected void connectProject(final IProgressMonitor monitor,
      final File repositoryPath, final IProject project)
      throws CoreException {
    final ConnectProviderOperation connectProviderOperation = new ConnectProviderOperation(
        project, repositoryPath);
    connectProviderOperation.execute(monitor);
  }

  protected void createProject(final IProgressMonitor monitor,
      final IProjectDescription projectDescription,
      final IProject project, boolean exists) throws CoreException {
View Full Code Here


      try {
        getContainer().run(true, false, new IRunnableWithProgress() {
          public void run(final IProgressMonitor monitor)
              throws InvocationTargetException {
            try {
              op.execute(monitor);
              PlatformUI.getWorkbench().getDisplay()
                  .syncExec(new Runnable() {
                    public void run() {
                      Set<File> filesToAdd = new HashSet<File>();
                      // collect all files first
View Full Code Here

          }

          if (!projectsToConnect.isEmpty()) {
            ConnectProviderOperation connect = new ConnectProviderOperation(
                projectsToConnect);
            connect.execute(new SubProgressMonitor(actMonitor, 1));
          }
        } finally {
          actMonitor.done();
        }
      }
View Full Code Here

              .getRoot().getProjects();
          for (IProject current : currentProjects)
            if (!previousProjects.contains(current)) {
              ConnectProviderOperation cpo = new ConnectProviderOperation(
                  current, repoDir[0]);
              cpo.execute(actMonitor);
            }
        }
      };
      try {
        ResourcesPlugin.getWorkspace().run(wsr, monitor);
View Full Code Here

                .getProject(desc.getName());
            prj.create(desc, actMonitor);
            prj.open(actMonitor);
            ConnectProviderOperation cpo = new ConnectProviderOperation(
                prj, repoDir[0]);
            cpo.execute(new NullProgressMonitor());

            ResourcesPlugin.getWorkspace().getRoot().refreshLocal(
                IResource.DEPTH_ONE, actMonitor);
          }
        };
View Full Code Here

   * @throws CoreException
   */
  public void connect(IProject project) throws CoreException {
    ConnectProviderOperation op = new ConnectProviderOperation(project,
        this.getRepository().getDirectory());
    op.execute(null);
  }

  /**
   * Disconnects provider from project
   *
 
View Full Code Here

    desc.setLocation(new Path(new File(parentFile, projectName).getPath()));
    firstProject.create(desc, null);
    firstProject.open(null);
    ConnectProviderOperation cop = new ConnectProviderOperation(
        firstProject, repo.getRepository().getDirectory());
    cop.execute(null);
    return firstProject;
  }


View Full Code Here

              .getRoot().getProjects();
          for (IProject current : currentProjects) {
            if (!previousProjects.contains(current)) {
              ConnectProviderOperation cpo = new ConnectProviderOperation(
                  current, myRepository.getDirectory());
              cpo.execute(actMonitor);
            }
          }

        }
      };
View Full Code Here

                IResource.DEPTH_ONE, actMonitor);

            File repoDir = myRepository.getDirectory();
            ConnectProviderOperation cpo = new ConnectProviderOperation(
                prj, repoDir);
            cpo.execute(new NullProgressMonitor());
          }
        };
        ResourcesPlugin.getWorkspace().run(wsr, monitor);

      } catch (CoreException e) {
View Full Code Here

        }

        project.open(monitor);
        final ConnectProviderOperation connectProviderOperation = new ConnectProviderOperation(
            project, repositoryPath);
        connectProviderOperation.execute(monitor);
      }

      return importedProjects;

    } catch (final CoreException 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.