Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.DisconnectProviderOperation


          && RepositoryProvider.getProvider(project) instanceof GitProvider)
        projects.add(project);
    }
    if (projects.isEmpty())
      return null;
    JobUtil.scheduleUserJob(new DisconnectProviderOperation(projects),
        UIText.Disconnect_disconnect,
        JobFamilies.DISCONNECT, new JobChangeAdapter() {
          @Override
          public void done(IJobChangeEvent actEvent) {
            GitLightweightDecorator.refresh();
View Full Code Here


   * @throws CoreException
   */
  public void disconnect(IProject project) throws CoreException {
    Collection<IProject> projects = Collections.singleton(project
        .getProject());
    DisconnectProviderOperation disconnect = new DisconnectProviderOperation(
        projects);
    disconnect.execute(null);
  }
View Full Code Here

          if (!(gitDirParent.toString() + File.separator)
              .startsWith(getTestDirectory().getCanonicalPath()
                  .toString() + File.separator))
            fail("Attempting cleanup of directory neither in workspace nor test directory"
                + canonicalFile);
        new DisconnectProviderOperation(Collections.singleton(project))
            .execute(null);
      }
      project.close(null);
      project.delete(true, true, null);
    }
View Full Code Here

      IFileHistory fh = fhProvider.getFileHistoryFor(singleRepoProject.getProject(), 0, null);
      assertNotNull(fh);
      assertEquals(fh.getFileRevisions().length, 1);
      assertNotNull(fh.getFileRevision(commit.getId().getName()));
    } finally {
      DisconnectProviderOperation disconnectOp = new DisconnectProviderOperation(Collections.singletonList(proj));
      disconnectOp.execute(progress);
      Activator.getDefault().getRepositoryUtil().removeDir(singleProjectGitDir);
      singleProjectRepo.close();
      singleRepoProject.dispose();
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.op.DisconnectProviderOperation

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.